From e9e2d2c39fed7077430c5643e5a704acff94cc31 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Tue, 01 Feb 2022 01:01:56 +0000
Subject: [PATCH] fix in-section pager #58
---
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">
--
Gitblit v1.10.0