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.
55 lines
1.7 KiB
55 lines
1.7 KiB
3 years ago
|
{% extends "base.html" %}
|
||
|
|
||
|
{% 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 nav %}
|
||
|
<span><a href="..">..</a>/{{ page.slug }}</span>
|
||
|
<noscript id="theme-toggle-placeholder"></noscript>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<h1 id="page-title">{{ page.title }}</h1>
|
||
|
{{ page.content | safe }}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block aside %}
|
||
|
{% 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 %}
|
||
|
<span id="page-external-reading">
|
||
|
External reading:
|
||
|
<ul>
|
||
|
{% for extlink in page.extra.external_reading %}
|
||
|
<li><a href="{{ extlink.url }}">{{ extlink.text }}</a></li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</span>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block footer %}
|
||
|
<span>
|
||
|
© {{ now() | date(format='%Y') }}
|
||
|
{% if page.extra.author %}
|
||
|
{{ page.extra.author }}
|
||
|
{% elif config.extra.author %}
|
||
|
{{ config.extra.author }}
|
||
|
{% endif %}
|
||
|
</span>
|
||
|
{% endblock %}
|