websites/ewintr.nl/themes/no-style-please/templates/index.html

23 lines
643 B
HTML

{% extends "base.html" %}
{% block content %}
{{ section.content | safe }}
{% set section = get_section(path="_index.md") %}
{% set subsections = section.subsections | sort | reverse %}
{% for s in subsections %}
{% set ss = get_section(path=s) %}
<h2>{{ ss.title }}</h2>
{% set ps = ss.pages | sort(attribute="date") | reverse %}
<ul>
{% for page in ps %}
<li>
<a href="{{ page.permalink | safe }}">{% if page.date and not config.extra.no_list_date %}{{ page.date }} - {% endif %}{{ page.title }}</a>
<br />
{{ page.description }}
</li>
{% endfor %}
</ul>
{% endfor %}
{% endblock content %}