mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix: simplify pagination condition in home layout
This commit is contained in:
@@ -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
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user