From 92a1455aa613e684596d9ec8c6148d6c3bb006f9 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 26 Feb 2023 10:16:37 +1100 Subject: [PATCH] Figure captions --- app/templates/posts/show.html.slim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/templates/posts/show.html.slim b/app/templates/posts/show.html.slim index 5cc593a..a19e42a 100644 --- a/app/templates/posts/show.html.slim +++ b/app/templates/posts/show.html.slim @@ -7,8 +7,10 @@ article class="h-entry" article class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline prose-img:rounded" - if post.videos? - post.videos.each do |video| - video loop=true muted=true controls=true - source type="video/mp4" src="#{video["value"]}" + figure + video loop=true muted=true controls=true + source type="video/mp4" src="#{video["value"]}" + figcaption= video["alt"] - if post.photos? - post.photos.each do |photo| figure