{% import "macros/prose.html" as macros %} {% extends "_base.html" %} {% block page %}blog{% endblock page%} {% block lang %}{% if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ section.lang }}{% endif %}{% endblock lang %} {% block title %}{{ section.title }}{% endblock title %} {% block desc %} {% if section.description %} {% set desc = section.description %} {% else %} {% set desc = config.description %} {% endif %} {% endblock desc %} {% block content %}
{{ macros::back_link(path = get_url(path="/")) }} {% include "_section_title.html" %}
{% if section.extra.categorized %} {% for category,posts in section.pages | sort(attribute="taxonomies.categories.0") | group_by(attribute="taxonomies.categories.0") %} {% set category_name = category %} {% if category is matching("^__[0-9]{2}__") %} {% set category_name = category | split(pat="") | slice(start=7) | join(sep="") %} {% endif %}

{{ category_name }}

{% for post in posts %} {{ post.title }} {{ post.date | date(format=section.extra.date_format) }} {% endfor %}
{% endfor %} {% else %}
{% for post in section.pages %} {{ post.title }} {{ post.date | date(format=section.extra.date_format) }} {% endfor %}
{% endif %}
{% include "_footer.html" %}
{% endblock content %}