diff options
author | Hugo Aguirre <bul.ikana@gmail.com> | 2018-09-30 01:26:54 +0300 |
---|---|---|
committer | Hugo Aguirre <bul.ikana@gmail.com> | 2018-09-30 01:26:54 +0300 |
commit | 3748934f63ad9c45a53772391883c9b8ddcebb5c (patch) | |
tree | ecf7d0f46821309ac713cad6202d21c637ed76e7 | |
parent | abab8eb4d7d7a34b1a196bc552b2436ab355552b (diff) |
Single page pagination
-rw-r--r-- | layouts/_default/single.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e53c4ae..bbb6775 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -22,12 +22,12 @@ <div class="row"> <ul class="pager"> - {% if page.next.url %} - <li><a class="next" href="{page.next.url | prepend: site.baseurl}}">« {page.next.title}}</a></li> - {% endif %} - {% if page.previous.url %} - <li><a class="previous" href="{page.previous.url | prepend: site.baseurl}}">{page.previous.title}} »</a></li> - {% endif %} + {{ with .Next }} + <li><a class="next" href="{{ .URL }}">« {{ .Title }}</a></li> + {{ end }} + {{ with .Prev }} + <li><a class="previous" href="{{ .URL }}">{{ .Title }} »</a></li> + {{ end }} </ul> </div> </div> |