diff --git a/pelican/tests/output/custom/author/alexis-metaireau.html b/pelican/tests/output/custom/author/alexis-metaireau.html index ca58ea85..7a277e2c 100644 --- a/pelican/tests/output/custom/author/alexis-metaireau.html +++ b/pelican/tests/output/custom/author/alexis-metaireau.html @@ -122,6 +122,7 @@

Page 1 / 3 » +

@@ -167,4 +168,4 @@ }()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom/author/alexis-metaireau2.html b/pelican/tests/output/custom/author/alexis-metaireau2.html index f295bfa0..a5588090 100644 --- a/pelican/tests/output/custom/author/alexis-metaireau2.html +++ b/pelican/tests/output/custom/author/alexis-metaireau2.html @@ -133,9 +133,11 @@ YEAH !

+ « Page 2 / 3 » +

@@ -181,4 +183,4 @@ YEAH !

}()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom/author/alexis-metaireau3.html b/pelican/tests/output/custom/author/alexis-metaireau3.html index 6740f612..095b39b6 100644 --- a/pelican/tests/output/custom/author/alexis-metaireau3.html +++ b/pelican/tests/output/custom/author/alexis-metaireau3.html @@ -85,6 +85,7 @@ pelican.conf, it will …

+ « Page 3 / 3

@@ -132,4 +133,4 @@ pelican.conf, it will …

}()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom/index.html b/pelican/tests/output/custom/index.html index b1f0df5b..e63db6ec 100644 --- a/pelican/tests/output/custom/index.html +++ b/pelican/tests/output/custom/index.html @@ -122,6 +122,7 @@

Page 1 / 3 » +

@@ -167,4 +168,4 @@ }()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom/index2.html b/pelican/tests/output/custom/index2.html index 9460cc4e..570e3b81 100644 --- a/pelican/tests/output/custom/index2.html +++ b/pelican/tests/output/custom/index2.html @@ -133,9 +133,11 @@ YEAH !

+ « Page 2 / 3 » +

@@ -181,4 +183,4 @@ YEAH !

}()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom/index3.html b/pelican/tests/output/custom/index3.html index 0bb90e9e..f92bdbb1 100644 --- a/pelican/tests/output/custom/index3.html +++ b/pelican/tests/output/custom/index3.html @@ -85,6 +85,7 @@ pelican.conf, it will …

+ « Page 3 / 3

@@ -132,4 +133,4 @@ pelican.conf, it will …

}()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom_locale/author/alexis-metaireau.html b/pelican/tests/output/custom_locale/author/alexis-metaireau.html index b5fdcf36..9b4ca7dd 100644 --- a/pelican/tests/output/custom_locale/author/alexis-metaireau.html +++ b/pelican/tests/output/custom_locale/author/alexis-metaireau.html @@ -122,6 +122,7 @@

Page 1 / 3 » +

@@ -167,4 +168,4 @@ }()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom_locale/author/alexis-metaireau2.html b/pelican/tests/output/custom_locale/author/alexis-metaireau2.html index 5858b465..a1848677 100644 --- a/pelican/tests/output/custom_locale/author/alexis-metaireau2.html +++ b/pelican/tests/output/custom_locale/author/alexis-metaireau2.html @@ -133,9 +133,11 @@ YEAH !

+ « Page 2 / 3 » +

@@ -181,4 +183,4 @@ YEAH !

}()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom_locale/author/alexis-metaireau3.html b/pelican/tests/output/custom_locale/author/alexis-metaireau3.html index 6a071a4a..78fdd866 100644 --- a/pelican/tests/output/custom_locale/author/alexis-metaireau3.html +++ b/pelican/tests/output/custom_locale/author/alexis-metaireau3.html @@ -85,6 +85,7 @@ pelican.conf, it will …

+ « Page 3 / 3

@@ -132,4 +133,4 @@ pelican.conf, it will …

}()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom_locale/index.html b/pelican/tests/output/custom_locale/index.html index de6e3d69..29e12b1b 100644 --- a/pelican/tests/output/custom_locale/index.html +++ b/pelican/tests/output/custom_locale/index.html @@ -122,6 +122,7 @@

Page 1 / 3 » +

@@ -167,4 +168,4 @@ }()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom_locale/index2.html b/pelican/tests/output/custom_locale/index2.html index 54ff8fb8..c0727385 100644 --- a/pelican/tests/output/custom_locale/index2.html +++ b/pelican/tests/output/custom_locale/index2.html @@ -133,9 +133,11 @@ YEAH !

+ « Page 2 / 3 » +

@@ -181,4 +183,4 @@ YEAH !

}()); - \ No newline at end of file + diff --git a/pelican/tests/output/custom_locale/index3.html b/pelican/tests/output/custom_locale/index3.html index ac06a05e..0d2722f2 100644 --- a/pelican/tests/output/custom_locale/index3.html +++ b/pelican/tests/output/custom_locale/index3.html @@ -85,6 +85,7 @@ pelican.conf, it will …

+ « Page 3 / 3

@@ -132,4 +133,4 @@ pelican.conf, it will …

}()); - \ No newline at end of file + diff --git a/pelican/themes/simple/templates/pagination.html b/pelican/themes/simple/templates/pagination.html index 4219a5c3..588f130c 100644 --- a/pelican/themes/simple/templates/pagination.html +++ b/pelican/themes/simple/templates/pagination.html @@ -1,11 +1,15 @@ {% if DEFAULT_PAGINATION %} +{% set first_page = articles_paginator.page(1) %} +{% set last_page = articles_paginator.page(articles_paginator.num_pages) %}

{% if articles_page.has_previous() %} + « {% endif %} Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} {% if articles_page.has_next() %} » + {% endif %}

{% endif %}