43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{section.title}} – {{ config.extra.sitename|safe }}{% endblock title %}
|
|
|
|
{% block head %}
|
|
{% if section.extra.katex %}{{macros::katex()}}{% endif %}
|
|
{% endblock head %}
|
|
|
|
{% block body %}
|
|
<span id="breadcrumb">
|
|
{% for a in section.ancestors %}
|
|
{% set s = get_section(path=a) %}
|
|
<a href="{{s.permalink|safe}}">{{s.title}}</a>
|
|
{% if not loop.last %}>{% endif %}
|
|
{% endfor %}
|
|
</span>
|
|
<br/>
|
|
<span id="langs">
|
|
{{lang}} –
|
|
|
|
{% for t in section.translations %}
|
|
{% if t.lang|default(value=config.default_language) != lang %}
|
|
<a href="{{t.permalink|safe}}">{{t.lang|default(value=config.default_language)}}</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</span>
|
|
|
|
<h1>{{section.title | safe}}</h1>
|
|
|
|
<main>
|
|
{{section.content | safe}}
|
|
</main>
|
|
|
|
<section class="article-list">
|
|
{% for page in section.pages %}
|
|
<article>
|
|
<h2 class="article-list_title"><a href="{{page.permalink|safe}}">{{page.title}}</a></h2>
|
|
<small>{{page.date}}</small>
|
|
<p>{{page.description|safe}}</p>
|
|
</article>
|
|
{% endfor %}
|
|
</section>
|
|
{% endblock body %}
|