a zola theme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.1 KiB

2 years ago
{% extends "base.html" %}
2 years ago
{% import "macros.html" as macros %}
2 years ago
{% block title %}
{{ page.title }} - {{ config.title }}
{% endblock %}
{% block page_meta %}
{% if page.description %}
<meta name="description" content="{{ page.description | safe | default(value='') | truncate(length=150) }}" />
{% endif %}
{% if page.extra.author or config.extra.author %}
<meta name="author" content="{% if page.extra.author %}{{ page.extra.author }}{% else %}{{ config.extra.author }}{% endif %}" />
{% endif %}
{% endblock %}
{% block content %}
<h1 id="page-title">{{ page.title }}</h1>
{{ page.content | safe }}
{% endblock %}
{% block aside %}
2 years ago
{{ macros::parent_tree(ancestors=page.ancestors) }}
2 years ago
{% if page.date -%}
<span id="page-publish-date">Published: <time>{{ page.date }}</time>{% if page.updated %}, Updated: <time>{{ page.updated }}</time>{% endif %}</span>
{%- endif %}
{% if page.extra.author %}
<span id="page-author">By: {{ page.extra.author }}</span>
{% endif %}
<span id="page-read-time">Read time: <time>{{ page.reading_time }}</time> minutes</span>
{% if page.extra.external_reading %}
<details open>
<summary id="page-toc">Table of Contents:</summary>
{{ macros::toc(page=page) }}
</details>
2 years ago
<span id="page-external-reading">
External reading:
<ul>
{% for extlink in page.extra.external_reading %}
<li><a target="_blank" href="{{ extlink.url }}">{{ extlink.text }}</a></li>
2 years ago
{% endfor %}
</ul>
</span>
{% endif %}
2 years ago
{% if config.extra.xscratch_debug_info %}
<span><strong>Debug info:</strong></span>
{{ macros::debug(thing=page, label="page", recurse=2) }}
{% endif %}
2 years ago
{% endblock %}
{% block footer %}
<span>
{% if page.date %}
{{ page.date | date(format='%Y') }}
{% else %}
2 years ago
{{ now() | date(format='%Y') }}
{% endif %}
2 years ago
{% if page.extra.author %}
{{ page.extra.author }}
{% elif config.extra.author %}
{{ config.extra.author }}
{% endif %}
</span>
{% endblock %}