From 9b47648aa539c43f44c2ae1a0b61e68a385895bd Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 12 Oct 2023 17:17:00 +0800 Subject: [PATCH] :sparkles: Feat: change post nav rule at post footer replace .PrevInSection/.NextInSection with .Prev/.Next --- layouts/partials/head/link.html | 8 ++++---- layouts/partials/single/footer.html | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/head/link.html b/layouts/partials/head/link.html index 224eecb2..9e503894 100644 --- a/layouts/partials/head/link.html +++ b/layouts/partials/head/link.html @@ -19,11 +19,11 @@ {{- end -}} -{{- if .PrevInSection -}} - +{{- if .Prev -}} + {{- end -}} -{{- if .NextInSection -}} - +{{- if .Next -}} + {{- end -}} {{- with .OutputFormats.Get "RSS" -}} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index d0fa909b..0d48d604 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -74,13 +74,13 @@