]> git.bitcoin.ninja Git - blog/commitdiff
add baseurl to next/previous_page_path
authorTom Anderson <tom@squeat.com>
Tue, 3 Mar 2015 15:57:19 +0000 (08:57 -0700)
committerTom Anderson <tom@squeat.com>
Tue, 3 Mar 2015 15:57:19 +0000 (08:57 -0700)
index.html

index e3bb0cabf7da0a98a84808a1e931b46eee825783..9d06c215bb35741241816534a1a99ea3ec363585 100644 (file)
@@ -21,12 +21,12 @@ title: Home
 
 <div class="pagination">
   {% if paginator.next_page %}
-    <a class="pagination-item older" href="{{paginator.next_page_path}}">Older</a>
+    <a class="pagination-item older" href="{{paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older</a>
   {% else %}
     <span class="pagination-item older">Older</span>
   {% endif %}
   {% if paginator.previous_page %}
-    <a class="pagination-item newer" href="{{paginator.previous_page_path}}">Newer</a>
+    <a class="pagination-item newer" href="{{paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">Newer</a>
   {% else %}
     <span class="pagination-item newer">Newer</span>
   {% endif %}