Created
November 6, 2009 02:18
-
-
Save edavis10/227621 to your computer and use it in GitHub Desktop.
Pagination in Jekyll
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
# ....other stuff here | |
paginate: 10 |
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
{% for page in paginator.posts %} | |
{% include single_page.html %} | |
{% endfor %} |
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
<h2 class="title"><a href="{{ page.url }}">{{ page.title }}</a></h2> | |
<div class="post post-{{ page.id }}"> | |
<p class="author"> | |
Added by {{ page.author }} | |
on {{ page.date | date: '%B %d, %Y' }} | |
in {% for category in page.categories %} | |
<a href="/{{category | downcase}}.html">{{category}}</a> | |
{% endfor %} | |
</p> | |
<hr /> | |
<div class="entrybody"> | |
{{ page.content }} | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be useful to show next / previous links in this example