Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Stieler <mail@hauke-stieler.de>2020-04-09 22:23:28 +0300
committerHauke Stieler <mail@hauke-stieler.de>2020-04-09 22:23:28 +0300
commitf7c5cd9193ad407fa7538fa50578033cc028fdb1 (patch)
tree2fd70739d04276c0cbcbfa7d1c19e83183c486e7
parentb0aaaebb331402436656ac0ff21c964cb50012dc (diff)
Only link pagination to pages of the same section
-rw-r--r--layouts/_default/single.html4
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">&larr;</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">&rarr;</span>