fix: simplify pagination condition in home layout

This commit is contained in:
Cell
2025-09-16 12:38:49 +08:00
parent a228cce083
commit b850cfc70e
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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" . -}}
+2 -3
View File
@@ -25,9 +25,8 @@
</div>
{{- 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 -}}