]> git.bitcoin.ninja Git - blog/commitdiff
Merge branch 'improve_paginator_paths' of https://github.com/tra/poole into tra-impro...
authorMark Otto <markdotto@gmail.com>
Sun, 19 Apr 2015 06:06:55 +0000 (23:06 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 19 Apr 2015 06:06:55 +0000 (23:06 -0700)
1  2 
index.html

diff --cc index.html
index 86bca7bcdcf0bdc739814e8451bf0407dce92f06,b8868a9159d87bfdc9c056c0dea1e0dad14b6bee..012502c8262bb3dcb9ad70792c621514263e1f03
@@@ -21,16 -21,12 +21,12 @@@ title: Hom
  
  <div class="pagination">
    {% if paginator.next_page %}
-     <a class="pagination-item older" href="{{ site.baseurl }}/page{{paginator.next_page}}">Older</a>
 -    <a class="pagination-item older" href="{{paginator.next_page_path | prepend: site.baseurl}}">Older</a>
++    <a class="pagination-item older" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
    {% else %}
      <span class="pagination-item older">Older</span>
    {% endif %}
    {% if paginator.previous_page %}
-     {% if paginator.page == 2 %}
-       <a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a>
-     {% else %}
-       <a class="pagination-item newer" href="{{ site.baseurl }}/page{{paginator.previous_page}}">Newer</a>
-     {% endif %}
 -    <a class="pagination-item newer" href="{{paginator.previous_page_path | prepend: site.baseurl}}">Newer</a>
++    <a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
    {% else %}
      <span class="pagination-item newer">Newer</span>
    {% endif %}