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> </figcaption>
</figure> </figure>
{%- endfor %} {%- 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> </div>
{% else if post.post_type == "link" %} {% else if post.post_type == "link" %}
<a id="post_url" href="{{ post.media.url }}" rel="nofollow">{{ post.media.url }}</a> <a id="post_url" href="{{ post.media.url }}" rel="nofollow">{{ post.media.url }}</a>