arns-lt-gemini/templates/macros.tpl
Arnas Udovicius 347dcec3bc
All checks were successful
continuous-integration/drone/push Build is passing
all files count, zero tag count not display
2022-08-22 07:07:42 +03:00

5 lines
487 B
Smarty

{% 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 }}{% if count %} ({{ count }}){% endif %} {% endmacro %}
{% macro text_url(lang, file) export %}=> /{{ lang }}/f/{{ file.CategoriesAsUrl() }}/{{ file.Id }}/{{ file.GmiName() }}{{ file.Description }} ({{ file.Created }}) {% endmacro %}