view piecrust/resources/theme/templates/partial_post.html @ 856:9bb22bbe093c

refactor: Make the blog archives functional again. The blog archives are using the same pattern as the taxonomy support.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 06 Jun 2017 01:23:25 -0700
parents 9cc91a3d6862
children
line wrap: on
line source

<article>
    <header>
        <h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
        <small>{{ post.date }}
            {% if post.tags %}
            in 
            {% for t in post.tags -%}
            <a href="{{ pctagurl(t) }}">{{ t }}</a>{% if not loop.last %}, {% endif %}
            {%- endfor %}
            {% endif %}
            {% if post.category %}
            | <a href="{{ pccaturl(post.category) }}">{{ post.category }}</a>
            {% endif %}
        </small>
    </header>
    <section>
        {{ post.content|safe }}
    </section>
</article>