Created
July 21, 2014 12:51
-
-
Save wouterj/598bb1e6508d70576a06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| layout: default | |
| title: Category Archive | |
| generator: [posts_category_index, pagination] | |
| pagination: | |
| provider: page.category_posts | |
| --- | |
| {% block title %}{{ page.title }} "{{ page.category }}"{% endblock %} | |
| {% block content %} | |
| <h2>"{{ page.category }}"</h2> | |
| {% for post in page.pagination.items %} | |
| <article> | |
| <div><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></div> | |
| </article> | |
| {% endfor %} | |
| <div> | |
| {% if page.pagination.previous_page or page.pagination.next_page %} | |
| <nav class="article clearfix"> | |
| {% if page.pagination.previous_page %} | |
| <a class="previous" href="{{ site.url }}{{ page.pagination.previous_page.url }}" title="Previous Page"><span class="title">Previous Page</span></a> | |
| {% endif %} | |
| {% if page.pagination.next_page %} | |
| <a class="next" href="{{ site.url }}{{ page.pagination.next_page.url }}" title="Next Page"><span class="title">Next Page</span></a> | |
| {% endif %} | |
| </nav> | |
| {% endif %} | |
| </div> | |
| {% endblock content %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment