view piecrust/resources/theme/templates/_year.html @ 991:1857dbd4580f

bake: Fix bugs introduced by bake optimizations, of course. - Make the execution stats JSON-serializable. - Re-add ability to differentiate between sources used during segment rendering and during layout rendering. Fixes problems with cache invalidation of pages that use other sources. - Make taxonomy-related stuff JSON-serializable.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 20 Nov 2017 23:06:47 -0800
parents 9bb22bbe093c
children
line wrap: on
line source

{% extends "default.html" %}

{% block main %}
<h2>Posts in {{ year }}</h2>

<section>
    {% for post in pagination.posts %}
    <p><em>{{post.timestamp|date('%d %B')}}</em> &ndash; <a href="{{ post.url }}">{{ post.title }}</a></p>
    {% endfor %}
</section>
<section>
    {% if pagination.prev_page %}<div class="prev"><a href="{{ pagination.prev_page }}">Next Posts</a></div>{% endif %}
    {% if pagination.next_page %}<div class="next"><a href="{{ pagination.next_page }}">Previous Posts</a></div>{% endif %}
</section>
{% endblock %}