diff options
author | frantic1048 <franticblack@163.com> | 2013-11-21 16:11:50 +0800 |
---|---|---|
committer | frantic1048 <franticblack@163.com> | 2013-11-21 16:11:50 +0800 |
commit | 168b866cbafb6c3988097261cc48af7270ec72e9 (patch) | |
tree | 61085c3510852a7645743b7b49a8044aee930da2 /franticworld/templates/pagination.html | |
parent | 84fe361a8e3a64e524471b5d36927fd50086926d (diff) | |
download | pelican-themes-168b866cbafb6c3988097261cc48af7270ec72e9.tar.gz |
add franticworld's theme
Diffstat (limited to 'franticworld/templates/pagination.html')
-rw-r--r-- | franticworld/templates/pagination.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/franticworld/templates/pagination.html b/franticworld/templates/pagination.html new file mode 100644 index 0000000..a1300e8 --- /dev/null +++ b/franticworld/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +<p class="paginator"> + {% if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + <a href="{{ SITEURL }}/{{ page_name }}.html">«prev</a> + {% else %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">«</a> + {% endif %} + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">next»</a> + {% endif %} +</p> +{% endif %} |