arns-lt-gemini/templates/macros.tpl
Arnas Udovicius c946b9daba
All checks were successful
continuous-integration/drone/push Build is passing
all left pages
2022-08-21 01:34:22 +03:00

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