arns-lt-gemini/templates/macros.tpl
Arnas Udovicius 37cb244ffb
All checks were successful
continuous-integration/drone/push Build is passing
pango2 template engine
2022-08-20 23:46:31 +03:00

5 lines
423 B
Smarty

{% macro category_url(lang, path, category, count) export %}=> /{{ lang }}/f/{{ path }} {{ category }} ({{ count }}) {% 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 %}