{% import "_imports/blog.html" as blog %}
{% extends "_layouts/base.html" %}

{% block head %}
{{ blog.feedHeaders() }}
<style>
    .asdfgh > *:last-child {
        padding-bottom: 1em;
    }
</style>
{% endblock %}

{% block main %}
<div class="asdfgh">
<h1>{{ post.title }}</h1>
{% if post.description %}
<p class="h3">{{ post.description }}</p>
{% endif %}
</div>
{{ content | safe }}
{% endblock %}

{% block aside %}
<p>
    Published: {{ post.publishedDate | fmtdate }}
    {% if post.updatedDate and post.updatedDate | length >= 1 %}<br>Updated: {{ post.updatedDate.0 }}{% endif %}
    {% if post.tags | length > 0 %}<br>Tags: 
        {% set comma = joiner(",") %}
        {% for t in post.tags %}{{ comma() }} <a href="/blog/tags/{{ t }}/">{{ t }}</a>{% endfor %}
        {#{{ post.tags | join(", ") }}#}
    {% endif %}
</p>
{% endblock %}