diff options
author | Hauke Stieler <mail@hauke-stieler.de> | 2020-04-09 22:23:28 +0300 |
---|---|---|
committer | Hauke Stieler <mail@hauke-stieler.de> | 2020-04-09 22:23:28 +0300 |
commit | f7c5cd9193ad407fa7538fa50578033cc028fdb1 (patch) | |
tree | 2fd70739d04276c0cbcbfa7d1c19e83183c486e7 | |
parent | b0aaaebb331402436656ac0ff21c964cb50012dc (diff) |
Only link pagination to pages of the same section
-rw-r--r-- | layouts/_default/single.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0398c5b..15d8107 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -77,7 +77,7 @@ {{ end }} <div class="delimiter"></div> <div class="pager-container"> - {{ with .Prev }} + {{ with .PrevInSection }} <a class="btn btn-primary btn-older-posts" href="{{ .Permalink }}"> <div> <span aria-hidden="true">←</span> {{ i18n "olderPosts" }} @@ -90,7 +90,7 @@ </div> </a> {{ end }} - {{ with .Next }} + {{ with .NextInSection }} <a class="btn btn-primary btn-newer-posts" href="{{ .Permalink }}"> <div> {{ i18n "newerPosts" }} <span aria-hidden="true">→</span> |