Created
December 9, 2013 12:52
-
-
Save lonsagisawa/7871836 to your computer and use it in GitHub Desktop.
pagination setting(template,html)
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
<ul class="pager"> | |
{% if paginator.previous_page != nil %} | |
<li class="previous"><a href="{{ paginator.previous_page_path }}">← 新しい記事</a></li> | |
{% else %} | |
{% if paginator.next_page != 2 %} | |
<li class="previous"><a href="/">← 新しい記事</a></li> | |
{% endif %} | |
{% endif %} | |
{% if paginator.next_page != nil %} | |
<li class="next"><a href="{{ paginator.next_page_path }}">古い記事 →</a></li> | |
{% endif %} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment