From b850cfc70e20d005f5e245e12d79116111ac5aaf Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 16 Sep 2025 12:38:49 +0800 Subject: [PATCH] fix: simplify pagination condition in home layout --- layouts/_partials/init/index.html | 2 +- layouts/home.html | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index c78e23d8..0cd49960 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20250916024218-5d03f558" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20250916043850-a228cce0" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/home.html b/layouts/home.html index 1e883fa9..9a434327 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -25,9 +25,8 @@ {{- end -}} - {{- /* Posts */ -}} - {{- if ne $posts.enable false | and .Site.RegularPages -}} - {{- /* Paginate */ -}} + {{- /* Paginate */ -}} + {{- if ne $posts.enable false -}} {{- $pages := .Site.Store.Get "mainSectionPages" -}} {{- if .Site.Params.page.hiddenFromHomePage -}} {{- $pages = where $pages "Params.hiddenfromhomepage" false -}}