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

github.com/mismith0227/hugo_theme_pickles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormisumi <mismith0227@users.noreply.github.com>2019-12-20 22:41:56 +0300
committerGitHub <noreply@github.com>2019-12-20 22:41:56 +0300
commitff9f7aaa0fdb1a8d8eb2a30d1bed869440645b19 (patch)
tree1fe475bce58b0f00c00f7ee4c195195d0bb6e2dd
parent9cb98b1a28d50174b1be0a53302390937cd86217 (diff)
parentb2363872b7c6e38c75162b7dc5e4bf2b2badffae (diff)
Merge pull request #125 from phs/phs/next-prev-in-section
(Next|Prev)Page -> (Next|Prev)InSection
-rwxr-xr-xlayouts/_default/single.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9bc09f5..5df8e73 100755
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -38,14 +38,14 @@
<nav class="p-pagination c-pagination">
<div class="c-pagination__ctrl">
<div class="c-pagination__newer">
- {{ if .NextPage }}
- <a href="{{ .NextPage.Permalink }}">Newer</a>
+ {{ if .NextInSection }}
+ <a href="{{ .NextInSection.Permalink }}">Newer</a>
{{ else }}
{{ end }}
</div>
<div class="c-pagination__older">
- {{ if .PrevPage }}
- <a href="{{ .PrevPage.Permalink }}">Older</a>
+ {{ if .PrevInSection }}
+ <a href="{{ .PrevInSection.Permalink }}">Older</a>
{{ else }}
{{ end }}
</div>