arns-lt-gemini/templates/category.gmi

18 lines
882 B
Text
Raw Normal View History

2022-08-23 05:26:45 +00:00
{% import "macros.tpl" category_url, tag_url, text_url, logo %}
2023-06-29 18:25:40 +00:00
# {{ path }}
2022-08-20 20:46:31 +00:00
2022-08-23 10:39:43 +00:00
{% if indexFile %}{{ indexFile.FormatContent()|safe }}
2022-08-20 20:46:31 +00:00
🌙{{ indexFile.File.Created}}
2022-08-20 22:33:27 +00:00
{{ indexFile.File.Copyright }}{% endif %}
{% for file in tree.RootFiles %}{% if file.Name != "index.md" %}{{ text_url(lang, file) }}{% endif %}{% endfor %}
2022-08-20 20:46:31 +00:00
{% if tree.Categories %}### {% if lang == "sgs" %}Kateguorėjės{% else %}Categories{% endif %}
2022-08-20 22:33:27 +00:00
{% 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) }}
2022-08-20 20:46:31 +00:00
{% endfor %} {% endif %}
2022-08-20 22:33:27 +00:00
{% if tree.RootPath %}{{ category_url(lang, tree.RootPath, tree.RootPath, 0) }}{% endif %}
2022-08-20 20:46:31 +00:00
=> {% if lang == "sgs" %}/sgs 🏠 nomėi{% else %}/en 🏠 home{% endif %}