after-dark/templates/page.html

55 lines
2 KiB
HTML
Raw Permalink Normal View History

2017-11-03 09:31:31 +00:00
{% extends "index.html" %}
{% import "post_macros.html" as post_macros %}
{% block content %}
{% block header %}
{{ super() }}
{% endblock header %}
2017-11-03 09:31:31 +00:00
<article itemscope itemtype="http://schema.org/BlogPosting">
<header>
<h1 itemprop="headline">{{ page.title }}</h1>
<span class="muted">{{ post_macros::meta(page=page) }}</span>
</header>
<div itemprop="articleBody">
{{ page.content | safe }}
</div>
{% block page_footer %}
<footer>
<hr>
<p>
{% if page.extra.author %}
Published by {{ page.extra.author }}
{% elif config.extra.author %}
2017-11-03 09:31:31 +00:00
Published by {{ config.extra.author }}
{% endif %}
2018-07-31 14:21:14 +00:00
{% if page.taxonomies.categories %}
{% set category = page.taxonomies.categories[0] %}
2018-09-21 06:44:40 +00:00
in <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">{{ category }}</a>
2017-11-16 18:03:32 +00:00
{% endif %}
2018-07-31 14:21:14 +00:00
{% if page.taxonomies.tags %}
2021-09-01 22:10:32 +00:00
{% if page.taxonomies.categories %}and{% endif %}
tagged
2018-07-31 14:21:14 +00:00
{% for tag in page.taxonomies.tags %}
2018-09-21 06:44:40 +00:00
<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a>
2018-07-31 14:21:14 +00:00
{% if page.taxonomies.tags | length > 1 %}
{% if loop.index != page.taxonomies.tags | length %}
{% if loop.index == page.taxonomies.tags | length - 1 %}
2017-11-16 18:03:32 +00:00
and
{% else %}
,
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
2017-11-03 09:31:31 +00:00
</p>
2020-07-11 12:11:08 +00:00
{% block extra_footer %}
{% endblock extra_footer %}
2017-11-03 09:31:31 +00:00
</footer>
{% endblock page_footer %}
</article>
{% endblock content %}