Skip to content

Instantly share code, notes, and snippets.

@chrissimpkins
Created December 6, 2013 15:48
Show Gist options
  • Save chrissimpkins/7826931 to your computer and use it in GitHub Desktop.
Save chrissimpkins/7826931 to your computer and use it in GitHub Desktop.
Octopress pagination example
<footer>
<p class="meta">
{% include post/author.html %}
{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% include post/categories.html %}
</p>
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
<p class="meta">
{% if page.previous.url %}
<a class="basic-alignment left" href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">&laquo; {{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<a class="basic-alignment right" href="{{page.next.url}}" title="Next Post: {{page.next.title}}">{{page.next.title}} &raquo;</a>
{% endif %}
</p>
</footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment