2020-04-11 17:22:25 +00:00
|
|
|
{% extends "content.html" %}
|
2020-04-14 02:23:38 +00:00
|
|
|
{% import "macros.html" as macros %}
|
2020-04-11 17:22:25 +00:00
|
|
|
{% import "post_macros.html" as post_macros %}
|
2020-04-14 02:23:38 +00:00
|
|
|
{% block title %}{{ page.title }} - {{ config.title }}{% endblock %}
|
2018-08-22 13:30:07 +00:00
|
|
|
{% block content %}
|
|
|
|
<article itemscope itemtype="http://schema.org/BlogPosting">
|
2020-04-11 17:22:25 +00:00
|
|
|
<header class="article-header">
|
|
|
|
<span class="mono info">{{ post_macros::meta(page=page) }}</span>
|
|
|
|
<h1 itemprop="name headline">{{ page.title }}</h1>
|
2018-08-22 13:30:07 +00:00
|
|
|
</header>
|
|
|
|
<div itemprop="articleBody">
|
|
|
|
{{ page.content | safe }}
|
|
|
|
</div>
|
|
|
|
{% block page_footer %}
|
|
|
|
<footer>
|
|
|
|
<hr>
|
2020-04-11 17:22:25 +00:00
|
|
|
<p class="info muted mono">
|
2018-08-22 13:30:07 +00:00
|
|
|
{% if config.extra.author %}
|
|
|
|
Published by {{ config.extra.author }}
|
|
|
|
{% endif %}
|
|
|
|
{% set tags = page.taxonomies | get(key="blog/tags") %}
|
|
|
|
{% if tags %}
|
2020-04-14 10:37:55 +00:00
|
|
|
with tags
|
2018-08-22 13:30:07 +00:00
|
|
|
{% for tag in tags %}
|
2020-04-14 02:23:38 +00:00
|
|
|
<a href="{{ get_taxonomy_url(kind="blog/tags", name=tag) | safe }}">{{ tag }}</a>
|
2018-08-22 13:30:07 +00:00
|
|
|
{% if tags | length > 1 %}
|
|
|
|
{% if loop.index != tags | length %}
|
|
|
|
{% if loop.index == tags | length - 1 %}
|
|
|
|
and
|
|
|
|
{% else %}
|
|
|
|
,
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
{% endblock page_footer %}
|
|
|
|
</article>
|
|
|
|
{% endblock content %}
|
|
|
|
|