Fix build failing if taxonomy is set to anything other than "tags" (fixes #126)

This does not fix other issues however, notably links still point to
/tags, and it's displayed as tags in the UI.
This commit is contained in:
daudix
2025-03-30 07:28:24 +03:00
parent 4f8e8786fa
commit af524137a9

View File

@ -10,7 +10,7 @@
<ul class="tags"> <ul class="tags">
{%- for tag in terms -%} {%- for tag in terms -%}
<li><a href="{{ get_taxonomy_url(kind='tags', name=tag.name, lang=lang) }}"><span class="tag">{{ tag.name }}</span><span class="count">{{ tag.pages | length }}</span></a></li> <li><a href="{{ current_url }}{{ tag.slug }}"><span class="tag">{{ tag.name }}</span><span class="count">{{ tag.pages | length }}</span></a></li>
{%- endfor -%} {%- endfor -%}
</ul> </ul>
{% endblock content %} {% endblock content %}