all files count, zero tag count not display
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Arnas Udovicius 2022-08-22 07:07:42 +03:00
parent 6dc8abd6b3
commit 347dcec3bc
3 changed files with 3 additions and 3 deletions

View file

@ -25,4 +25,4 @@ Main themes are spreaded by categories. Each file may have tags what can filter
{% for file in lastFiles %}
{{ text_url(lang, file) }} {% endfor %} {% endif %}
=> /en/f all texts
=> /en/f all texts ({{ tree.Files|length }})

View file

@ -1,5 +1,5 @@
{% macro category_url(lang, path, category, count) export %}=> /{{ lang }}/f/{{ path }} 🌿 {{ category }}{% if count %} ({{ count }}){% endif %} {% endmacro %}
{% macro tag_url(lang, tag, count) export %}=> /{{ lang }}/t/{{ tag }} 🏷 {{ tag }} ({{ count }}) {% endmacro %}
{% macro tag_url(lang, tag, count) export %}=> /{{ lang }}/t/{{ tag }} 🏷 {{ tag }}{% if count %} ({{ count }}){% endif %} {% endmacro %}
{% macro text_url(lang, file) export %}=> /{{ lang }}/f/{{ file.CategoriesAsUrl() }}/{{ file.Id }}/{{ file.GmiName() }}{{ file.Description }} ({{ file.Created }}) {% endmacro %}

View file

@ -25,4 +25,4 @@ Pagrindėnės temas paskėrstītas par kateguorėjės. Kuožnos fails gal turie
{% for file in lastFiles %}
{{ text_url(lang, file) }} {% endfor %} {% endif %}
=> /sgs/f vėsė straipsnē
=> /sgs/f vėsė straipsnē ({{ tree.Files|length }})