Skip to content

Instantly share code, notes, and snippets.

Created November 6, 2009 02:18
  • Star 19 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Pagination in Jekyll
# ....other stuff here
paginate: 10
{% for page in paginator.posts %}
{% include single_page.html %}
{% endfor %}
<h2 class="title"><a href="{{ page.url }}">{{ page.title }}</a></h2>
<div class="post post-{{ }}">
<p class="author">
Added by {{ }}
on {{ | date: '%B %d, %Y' }}
in {% for category in page.categories %}
<a href="/{{category | downcase}}.html">{{category}}</a>
{% endfor %}
<hr />
<div class="entrybody">
{{ page.content }}
Copy link

incompl commented May 8, 2012

Would be useful to show next / previous links in this example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment