Created
May 17, 2013 14:53
-
-
Save blambi/5599577 to your computer and use it in GitHub Desktop.
This file contains 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: Just another 15mm miniature blog | |
--- | |
<div id="home"> | |
{% for post in paginator.posts %} | |
<div class="post"> | |
<h1>{{ post.title }}</h1> | |
<div class="posted-date">Posted on {{ post.date | date_to_string }}</div> | |
<div class="content">{{ post.content }}</div> | |
</div> | |
{% endfor %} | |
<!-- Pagination links --> | |
<div class="pagination"> | |
{% if paginator.previous_page %} | |
<a href="/page{{ paginator.previous_page }}" class="previous">Previous</a> | |
{% else %} | |
<span class="previous">Previous</span> | |
{% endif %} | |
<span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span> | |
{% if paginator.next_page %} | |
<a href="/page{{ paginator.next_page }}" class="next">Next</a> | |
{% else %} | |
<span class="next ">Next</span> | |
{% endif %} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment