diff options
author | weru <fromweru@gmail.com> | 2022-02-01 04:01:56 +0300 |
---|---|---|
committer | weru <fromweru@gmail.com> | 2022-02-01 04:01:56 +0300 |
commit | e9e2d2c39fed7077430c5643e5a704acff94cc31 (patch) | |
tree | d05eae5253f0693dd53bccd58a5542ab71743376 | |
parent | 19dcf4f70f4abddb46c528121cf46a9944cd4ec8 (diff) |
fix in-section pager #58
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r-- | layouts/partials/pager.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/pager.html b/layouts/partials/pager.html index 179f661..1bb5e8c 100644 --- a/layouts/partials/pager.html +++ b/layouts/partials/pager.html @@ -1,6 +1,6 @@ <div class="pager{{ if .Next }}{{ else }} pager_lean{{ end }}"> {{- $searchURL := "/search/" }} - {{ with .Site.RegularPages.Next . }} + {{ with .NextInSection }} {{ if ne .RelPermalink $searchURL }} <div class="pager_item prev"> <a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="prev"> @@ -10,7 +10,7 @@ {{ end }} {{ end }} - {{ with .Site.RegularPages.Prev . }} + {{ with .PrevInSection }} {{ if ne .RelPermalink $searchURL }} <div class="pager_item next"> <a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="next"> |