Skip to content

Instantly share code, notes, and snippets.

@kyleaparker
Created November 21, 2013 20:26
Show Gist options
  • Select an option

  • Save kyleaparker/7588995 to your computer and use it in GitHub Desktop.

Select an option

Save kyleaparker/7588995 to your computer and use it in GitHub Desktop.

Revisions

  1. kyleaparker created this gist Nov 21, 2013.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    {% assign count = paginate.pages %}
    {% for part in (1..count) %}
    <li {% if paginate.current_page == part %}class="active"{% endif %}><a href="{{ collection.url }}?page={{ forloop.index }}">{{ forloop.index }}</a></li>
    {% endfor %}