arns-lt-gemini/templates/category.gmi
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

10 lines
485 B
Text

{% import "macros.tpl" category_url, text_url %}
# Arna alkierios :: {{ path }}
{% if indexFile %}{{ indexFile.Content }}{% endif %}
{% for file in tree.RootFiles %}{{ text_url(lang, file) }} {% endfor %}
{% if tree.Categories %}### {% if lang == "sgs" %}Kateguorėjės{% else %}Categories{% endif %}
{% for cat, count in tree.Categories %}{{ category_url(lang, cat, cat, count) }}
{% endfor %} {% endif %}
=> {% if lang == "sgs" %}/sgs 🏠 nomėi{% else %}/en 🏠 home{% endif %}