Fixup pagination
authorJoerg Jaspert <joerg@debian.org>
Sun, 14 Feb 2016 21:15:01 +0000 (22:15 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 14 Feb 2016 21:15:30 +0000 (22:15 +0100)
_config.yml
index.html

index 5ad63db..f3f1691 100644 (file)
@@ -7,8 +7,9 @@ author:
   uri: https://blog.ganneff.de/
 
 permalink: /:year/:month/:slug.html
-paginate: 200
-paginate_path:       "page/:num"
+paginate_path: "page/:num/"
+paginate: 10
+
 
 timezone:            Europe/Berlin
 
index e7097d9..0a8a0cd 100644 (file)
@@ -29,7 +29,7 @@ title: Ganneff's Little Blog
   {% if paginator.page == 2 %}
   <a class="prev left" href="/">&larr; Newer</a>
   {% else %}
-  <a class="prev left" href="/page{{paginator.previous_page}}/">&larr; Newer</a>
+  <a class="prev left" href="{{paginator.previous_page_path}}">&larr; Newer</a>
   {% endif %}
   {% else %}
   <span class="nope left">&larr; Newer</span>
@@ -38,10 +38,10 @@ title: Ganneff's Little Blog
   <span class="pages">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
 
   {% if paginator.next_page %}
-  <a class="next right" href="/page{{paginator.next_page}}/">Older &rarr;</a>
+  <a class="next right" href="{{paginator.next_page_path}}">Older &rarr;</a>
   {% else %}
   <span class="nope right">Older &rarr;</span>
   {% endif %}
 
 </div>
-{% endif %}
\ No newline at end of file
+{% endif %}