31 lines
1,006 B
HTML
31 lines
1,006 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>
|
|
{% 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 %}
|
|
</li>
|
|
{%- else -%}
|
|
<a href="{{ get_url(path=section.path, lang=lang) | safe }}">{{ trans(key="read-more", lang=lang) | default (value="📄 See the complete list...") }}</a>
|
|
{% break %}
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
</ul>
|
|
{% endif -%}
|
|
{% endfor -%}
|
|
|
|
{% endblock content %}
|