Skip to content

Commit

Permalink
fix post.gallery.len()
Browse files Browse the repository at this point in the history
  • Loading branch information
DokterKaj committed Oct 21, 2024
1 parent fb39759 commit f39cf81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h1 class="post_title">
</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>
Expand Down

0 comments on commit f39cf81

Please sign in to comment.