projects
/
Ultimately_Untrue_Thought.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
paginate main site
[Ultimately_Untrue_Thought.git]
/
theme
/
templates
/
pagination.inc.html
diff --git
a/theme/templates/pagination.inc.html
b/theme/templates/pagination.inc.html
index
5784130
..
fbbf7c1
100644
(file)
--- a/
theme/templates/pagination.inc.html
+++ b/
theme/templates/pagination.inc.html
@@
-2,14
+2,22
@@
<div class="pagination">
{% if articles_page.has_previous() %}
{% if articles_page.previous_page_number() == 1 %}
<div class="pagination">
{% if articles_page.has_previous() %}
{% if articles_page.previous_page_number() == 1 %}
-
<a href="{{ SITEURL }}/{{ page_name }}">«</a>
+ <a href="{{ SITEURL }}/{{ page_name }}">«</a>
{% else %}
{% else %}
+ {% if page_name == "index" %}
+ <a href="{{ SITEURL }}/page/{{ articles_page.previous_page_number() }}/">«</a>
+ {% else %}
<a href="{{ SITEURL }}/{{ page_name }}page/{{ articles_page.previous_page_number() }}/">«</a>
<a href="{{ SITEURL }}/{{ page_name }}page/{{ articles_page.previous_page_number() }}/">«</a>
+ {% endif %}
{% endif %}
{% endif %}
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
{% if articles_page.has_next() %}
{% endif %}
{% endif %}
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
{% if articles_page.has_next() %}
+ {% if page_name == "index" %}
+ <a href="{{ SITEURL }}/page/{{ articles_page.next_page_number() }}/">»</a>
+ {% else %}
<a href="{{ SITEURL }}/{{ page_name }}page/{{ articles_page.next_page_number() }}/">»</a>
<a href="{{ SITEURL }}/{{ page_name }}page/{{ articles_page.next_page_number() }}/">»</a>
+ {% endif %}
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
{% endif %}