fix post.gallery.len()

This commit is contained in:
DokterKaj 2024-10-21 23:13:09 +08:00
parent fb39759dd3
commit f39cf81e5b

View file

@ -149,7 +149,7 @@
</figcaption>
</figure>
{%- endfor %}
<div class="gallery_length" tabindex="-1">gallery<br>({{ post.len() }} images)</div>
<div class="gallery_length" tabindex="-1">gallery<br>({{ post.gallery.len() }} images)</div>
</div>
{% else if post.post_type == "link" %}
<a id="post_url" href="{{ post.media.url }}" rel="nofollow">{{ post.media.url }}</a>