A dark theme for Zola, based on After Dark.
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.

48 lines
1.7 KiB

7 years ago
{% extends "index.html" %}
{% import "post_macros.html" as post_macros %}
{% block content %}
<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 config.extra.author %}
Published by {{ config.extra.author }}
{% endif %}
{% if page.taxonomies.categories %}
{% set category = page.taxonomies.categories[0] %}
in <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">{{ category }}</a>
7 years ago
{% endif %}
{% if page.taxonomies.tags %}
7 years ago
and tagged
{% for tag in page.taxonomies.tags %}
<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a>
{% if page.taxonomies.tags | length > 1 %}
{% if loop.index != page.taxonomies.tags | length %}
{% if loop.index == page.taxonomies.tags | length - 1 %}
7 years ago
and
{% else %}
,
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
7 years ago
</p>
</footer>
{% endblock page_footer %}
</article>
{% endblock content %}