Skip to content

Instantly share code, notes, and snippets.

@blambi
Created May 17, 2013 14:53
Show Gist options
  • Save blambi/5599577 to your computer and use it in GitHub Desktop.
Save blambi/5599577 to your computer and use it in GitHub Desktop.
---
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