website/templates/meta-section.html

32 lines
1,006 B
HTML
Raw Normal View History

2024-06-20 04:55:27 +02:00
{% 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>
2025-05-06 01:43:11 +02:00
{% if lang == "en" %}
<a href="{{ get_url(path=page.path, lang=lang) | safe }}">{{ page.date ~ "// " ~ page.extra.en.title }}</a>
{% else %}
<a href="{{ get_url(path=page.path, lang=lang) | safe }}">{{ page.date ~ "// " ~ page.title }}</a>
{% endif %}
2024-06-20 04:55:27 +02:00
</li>
{%- else -%}
2025-05-06 01:43:11 +02:00
<a href="{{ get_url(path=section.path, lang=lang) | safe }}">{{ trans(key="read-more", lang=lang) | default (value="📄 See the complete list...") }}</a>
2024-06-20 04:55:27 +02:00
{% break %}
{%- endif %}
{%- endfor %}
</ul>
{% endif -%}
{% endfor -%}
{% endblock content %}