add number_of_posts declaration

This commit is contained in:
welpo 2024-02-16 15:22:48 +01:00
parent 0ef39d7f73
commit 2d83a081a7
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6

View file

@ -11,6 +11,7 @@
<ul class="tags">
{%- for term in terms -%}
<li class="tags-item">
{%- set number_of_posts = term.pages | length -%}
{% if config.extra.compact_tags %}
{# Shows the number of posts per tag as a superscript #}
<a href="{{ term.permalink | safe }}"