comparison piecrust/resources/theme/templates/_category.html @ 855:448710d84121

refactor: Get the taxonomy support back to a functional state. There's now a taxonomy content source that wraps another normal content source like a blog posts' source. It works in tandem with a taxonomy content pipeline that will do the heavy lifting of figuring out what kind of terms exist and need to be baked.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 06 Jun 2017 00:26:21 -0700
parents 4850f8c21b6e
children
comparison
equal deleted inserted replaced
854:08e02c2a2a1a 855:448710d84121
1 --- 1 {% extends "default.html" %}
2 title: 2
3 format: none 3 {% block main %}
4 ---
5 <h2>Posts in {{ category }}</h2> 4 <h2>Posts in {{ category }}</h2>
6 5
7 <section> 6 <section>
8 {% for post in pagination.posts %} 7 {% for post in pagination.posts %}
9 {% include 'partial_post.html' %} 8 {% include 'partial_post.html' %}
11 </section> 10 </section>
12 <section> 11 <section>
13 {% if pagination.prev_page %}<div class="prev"><a href="{{ pagination.prev_page }}">Next Posts</a></div>{% endif %} 12 {% if pagination.prev_page %}<div class="prev"><a href="{{ pagination.prev_page }}">Next Posts</a></div>{% endif %}
14 {% if pagination.next_page %}<div class="next"><a href="{{ pagination.next_page }}">Previous Posts</a></div>{% endif %} 13 {% if pagination.next_page %}<div class="next"><a href="{{ pagination.next_page }}">Previous Posts</a></div>{% endif %}
15 </section> 14 </section>
16 15 {% endblock %}