arns-lt-gemini/templates/category.gmi
Arnas Udovicius c19094ca90
All checks were successful
continuous-integration/drone/push Build is passing
format content
2022-08-23 13:20:07 +03:00

18 lines
867 B
Text

{% import "macros.tpl" category_url, tag_url, text_url, logo %}
# {{ logo() }} Arna alkierios :: {{ path }}
{% if indexFile %}{{ indexFile.FormatContent() }}
🌙 {{ indexFile.File.Created}}
{{ indexFile.File.Copyright }}{% 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, tree.Path|add:"/"|add:cat, cat, count) }}
{% endfor %} {% endif %}
{% if tree.Tags %}### {% if lang == "sgs" %}Žīmas{% else %}Tags{% endif %}
{% for tag, count in tree.Tags %}{{ tag_url(lang, tag, count) }}
{% endfor %} {% endif %}
{% if tree.RootPath %}{{ category_url(lang, tree.RootPath, tree.RootPath, 0) }}{% endif %}
=> {% if lang == "sgs" %}/sgs 🏠 nomėi{% else %}/en 🏠 home{% endif %}