2022-09-19 16:41:09 +00:00
{% extends "base.html" %}
2024-12-26 12:37:14 +00:00
{% block title %}{{page.title|safe}} – {{ tr.sitename|safe }}{% endblock title %}
2022-09-19 16:41:09 +00:00
{% block head %}
2022-11-10 20:56:10 +00:00
< meta property = "og:title" content = "{{page.title}}" / >
2024-09-10 12:03:43 +00:00
< meta property = "og:type" content = "article" / >
2024-09-10 12:52:19 +00:00
< meta property = "og:url" content = "{{page.permalink}}" / >
2024-09-10 12:03:43 +00:00
< meta property = "og:locale" content = "{{lang}}" / >
{% for t in page.translations %}
{% if t.lang|default(value=config.default_language) != lang %}
< meta property = "og:locale:alternate" content = "{{t.lang|default(value=config.default_language)}}" / >
{% endif %}
{% endfor %}
< meta property = "og:description" content = "{{page.description}}" / >
2024-12-26 12:37:14 +00:00
< meta property = "og:site_name" content = "{{tr.sitename}}" / >
2024-09-10 12:52:19 +00:00
{% if page.extra.redirect %}
< meta http-equiv = "refresh" content = "0;URL='{{page.extra.redirect}}'" / >
{% endif %}
2022-09-19 16:41:09 +00:00
{% if page.extra.katex %}{{macros::katex()}}{% endif %}
{% endblock head %}
2024-12-26 12:37:14 +00:00
{% block header %}
< span class = "langs" >
2022-09-19 16:41:09 +00:00
{{lang}} –
{% for t in page.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 >
2024-12-26 12:37:14 +00:00
{% endblock header %}
{% block main_begin %}
{% if page.toc %}
< nav class = "sidenav" >
< ul class = "toc" >
{% for h2 in page.toc %}
< li >
< a href = "{{ h2.permalink | safe }}" > {{ h2.title | safe }}< / a >
< ul >
{% for h3 in h2.children %}
< li > < a href = "{{ h3.permalink | safe }}" > {{ h3.title | safe }}< / a > < / li >
{% endfor %}
< / ul >
< / li >
{% endfor %}
< / ul >
< / nav >
{% endif %}
{% endblock main_begin %}
2022-09-19 16:41:09 +00:00
2024-12-26 12:37:14 +00:00
{% block main %}
2022-09-19 16:41:09 +00:00
< h1 > {{page.title | safe}}< / h1 >
2022-10-11 20:11:26 +00:00
< small class = "article-date" > {{page.date}}< / small > < br / >
< small class = "article-tags" > {% for tag in page.taxonomies.tags %}< a href = "/{{macros::langurl()}}tags/{{tag}}" > {{tag}}< / a > {% if not loop.last %}, {% endif %}{% endfor %}< / small >
{% if page.toc %}
2024-12-26 12:37:14 +00:00
< nav class = "pagetoc" >
2022-10-11 20:11:26 +00:00
< ul class = "toc" >
{% for h2 in page.toc %}
< li >
< a href = "{{ h2.permalink | safe }}" > {{ h2.title | safe }}< / a >
< ul >
{% for h3 in h2.children %}
< li > < a href = "{{ h3.permalink | safe }}" > {{ h3.title | safe }}< / a > < / li >
{% endfor %}
< / ul >
< / li >
{% endfor %}
< / ul >
< / nav >
{% endif %}
2022-09-19 16:41:09 +00:00
2024-12-26 12:37:14 +00:00
{{page.content | safe}}
2022-09-19 16:41:09 +00:00
2024-12-26 12:37:14 +00:00
{% endblock main %}