From b7dba0713ecee2ec9dc0eadb0f9b3a96b04e61e3 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 16 Jan 2024 16:04:57 +0800 Subject: [PATCH] :bug: Fix: fix regular page in post navigation --- layouts/index.archives.html | 2 +- layouts/index.html | 2 +- layouts/index.readme.md | 2 +- layouts/index.rss.xml | 2 +- layouts/partials/init/global.html | 4 ++++ layouts/partials/init/index.html | 2 +- layouts/partials/single/footer.html | 9 +++++++-- layouts/partials/single/related.html | 2 +- 8 files changed, 17 insertions(+), 8 deletions(-) diff --git a/layouts/index.archives.html b/layouts/index.archives.html index ca9097f4..b5fe3e9b 100644 --- a/layouts/index.archives.html +++ b/layouts/index.archives.html @@ -5,7 +5,7 @@ {{- define "content" -}} {{- /* All Posts */ -}} - {{- $pages := where .Site.RegularPages "Type" "posts" -}} + {{- $pages := .Scratch.Get "mainSectionPages" -}}