1
0
Fork 0
website/templates/section_index.html
2025-03-20 22:57:40 +01:00

18 lines
No EOL
646 B
HTML

{% extends "base.html" %}
{% block main -%}
<h1>{{ page.title }}</h1>
{{ page.content | safe }}
<ul>
{% for child in page.children | filter(attribute="draft", value=false) | sort(attribute="date") | reverse -%}
{% if child.title -%}
<li><a href="{{base_url | trim_end_matches(pat='/') | safe}}{{child.absolute_path | safe}}">{% if child.date -%}
<time datetime="{{ child.date }}">{{ child.date | date(format="%F") }}</time> &ndash; {{ child.title
-}}
{% else -%}
{{ child.title -}}
{% endif -%}
</a></li>
{%- endif %}
{% endfor -%}
</ul>
{% endblock main -%}