website/templates/meta-section.html
2024-06-20 04:55:27 +02:00

27 lines
771 B
HTML

{% extends "base.html" %}
{%- block content -%}
<h1>{{ section.title }}</h1>
{{ section.content | safe }}
{% for sect in section.extra.sections %}
{%- set section = get_section(path=sect ~ "/_index.md") %}
{%- if section.pages | length > 0 -%}
<ul class="title-list">
<h2>{{ section.title }}</h2>
{%- for page in section.pages %}
{%- if loop.index <= 5 %}
<li>
<a href="{{ page.permalink | safe }}">{{ page.date ~ "// " ~ page.title }}</a>
</li>
{%- else -%}
<a href="{{ section.permalink | safe }}">{{ trans(key="read-more", lang=lang) | default (value="📄 See the complete list...") }}</a>
{% break %}
{%- endif %}
{%- endfor %}
</ul>
{% endif -%}
{% endfor -%}
{% endblock content %}