onders.org_zola_theme/templates/page.html

34 lines
834 B
HTML
Raw Permalink Normal View History

2023-02-06 12:20:18 +01:00
{% extends "base.html" %}
{% block title %}
{% if page.ancestors %}
{% set ancestor = get_section(path=page.ancestors | last) %}
{% if ancestor.extra %}
{{ config.title }} | {{ page.date }} - {{ page.title }} ({{ ancestor.title }})
{% else %}
{{ config.title }} | {{ page.title }}
{% endif %}
{% endif %}
{% endblock title %}
{% block subtitle %}
{% if page.ancestors %}
{% set ancestor = get_section(path=page.ancestors | last) %}
{% if ancestor.extra %}
<h2>{{ ancestor.extra.start }} - {{ ancestor.extra.end }}: {{ ancestor.title }}</h2>
{% else %}
<h2>{{ page.title }}</h2>
{% endif %}
{% endif %}
{% endblock subtitle %}
2023-02-06 12:20:18 +01:00
{% block content %}
{% if page.date %}
<h3>{{ page.title }} ({{ page.date }})</h3>
{% endif %}
{{ page.content | safe }}
{% if page.date %}
{% include "comments.html" %}
{% endif %}
2023-02-06 12:20:18 +01:00
{% endblock content %}