diff options
author | misumi <mismith0227@users.noreply.github.com> | 2019-12-20 22:41:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-20 22:41:56 +0300 |
commit | ff9f7aaa0fdb1a8d8eb2a30d1bed869440645b19 (patch) | |
tree | 1fe475bce58b0f00c00f7ee4c195195d0bb6e2dd | |
parent | 9cb98b1a28d50174b1be0a53302390937cd86217 (diff) | |
parent | b2363872b7c6e38c75162b7dc5e4bf2b2badffae (diff) |
Merge pull request #125 from phs/phs/next-prev-in-section
(Next|Prev)Page -> (Next|Prev)InSection
-rwxr-xr-x | layouts/_default/single.html | 8 |
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> |