Update post.pug and styles.css for large gallery images

This commit is contained in:
redmt
2022-06-11 20:59:35 +02:00
parent fc56f0a833
commit 0bf27cfd6c
2 changed files with 42 additions and 5 deletions

View File

@@ -137,12 +137,19 @@ html
if post.gallery
.gallery
each item in post.gallery_items
.item
div
if user_preferences.show_large_gallery_images == 'true'
.item.large
a(href="" + item.large + "", target="_blank")
img(src=""+ item.thumbnail +"", alt="")
a(href="" + item.source + "", target="_blank", class="source-link")
small source
img(src="" + item.large + "", title="" + item.caption + "")
if item.caption
span.caption !{item.caption}
else
.item
div
a(href="" + item.large + "", target="_blank")
img(src=""+ item.thumbnail +"", alt="")
a(href="" + item.source + "", target="_blank", class="source-link")
small source
if post.images
.image
a(href="" + post.images.source + "")