iterate over length of gallery

This commit is contained in:
DokterKaj 2024-10-23 00:43:42 +08:00
parent 07b367d304
commit 7b5643c27e

View file

@ -139,7 +139,7 @@
<div class="gallery_overlay" title="Hide overlay">
<div class="gallery_length" tabindex="-1">gallery<br>({{ post.gallery.len() }} images)</div>
<div class="gallery_progress" tabindex="-1">
{% for _ in post.gallery %}
{% for _ in 0..post.gallery.len() %}
<div class="gallery_dot"></div>
{% endfor %}
<div class="gallery_dot_indicator"></div>