diff --git a/app/templates/posts/show.html.slim b/app/templates/posts/show.html.slim index a19e42a..c7f9df1 100644 --- a/app/templates/posts/show.html.slim +++ b/app/templates/posts/show.html.slim @@ -5,18 +5,18 @@ article class="h-entry" = post.display_title 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| - 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 img class="u-photo shadow-solid shadow-pink-100 dark:shadow-pink-200 mb-4" src=photo["value"] alt=photo["alt"] figcaption = photo["alt"] + - if post.videos? + - post.videos.each do |video| + figure + video loop=true muted=true controls=true + source type="video/mp4" src="#{video["value"]}" + figcaption= video["alt"] div class="e-content" == post.content