From 8aaac6032699c68c80dc822dfeee48ae446e6268 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 26 Feb 2023 10:13:36 +1100 Subject: [PATCH] Videos --- app/templates/posts/show.html.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/posts/show.html.slim b/app/templates/posts/show.html.slim index d15a0d3..5cc593a 100644 --- a/app/templates/posts/show.html.slim +++ b/app/templates/posts/show.html.slim @@ -7,8 +7,8 @@ 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 muted controls - source type="video/mp4" src=video["value"] + video loop=true muted=true controls=true + source type="video/mp4" src="#{video["value"]}" - if post.photos? - post.photos.each do |photo| figure