Improve suport for image posts

This commit is contained in:
2023-02-06 15:03:18 +11:00
parent 2c56fafc49
commit 811affc9b3
5 changed files with 15 additions and 4 deletions

View File

@@ -1,10 +1,13 @@
div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
h1 = 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"
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.photos?
- post.photos.each do |photo|
img src=photo["value"] alt=photo["alt"]
figure
img src=photo["value"] alt=photo["alt"]
figcaption
= photo["alt"]
== post.content
div class="mb-4 max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"