neddit

the frontend of the frontpage of the internet  https://neddit.ce9e.org
git clone https://git.ce9e.org/neddit.git

commit
bd5822ae32ee68925bafeb957a2e803139a04cff
parent
43817b22ed9c743a130bbbb3bf3a450f59ee9f3c
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-03-25 06:25
support galleries

Diffstat

M templates/_post.html 7 +++++++

1 files changed, 7 insertions, 0 deletions


diff --git a/templates/_post.html b/templates/_post.html

@@ -18,6 +18,13 @@
   18    18 			<source src="{{ post.data.media.reddit_video.fallback_url }}" type="video/mp4">
   19    19 			<source src="{{ post.data.media.reddit_video.scrubber_media_url }}" type="video/mp4">
   20    20 		</video>
   -1    21 	{% elif post.data.is_gallery %}
   -1    22 		{% for img in post.data.media_metadata.values() %}
   -1    23 			<picture>
   -1    24 				<source srcset="{% for res in img.p %}{{ res.u }} {{ res.x }}w{% if not loop.last %}, {% endif %}{% endfor %}" sizes="40em">
   -1    25 				<img class="poster" src="{{ img.p|last|attr('u') }}">
   -1    26 			</picture>
   -1    27 		{% endfor %}
   21    28 	{% elif post.data.post_hint == 'image' %}
   22    29 		<a href="{{ post.data.url }}" target="_blank">
   23    30 			{% for img in post.data.preview.images %}