From 3e51c1f9b857028ed1c602ca66efaff0f0aa3288 Mon Sep 17 00:00:00 2001 From: Mario Ortiz Manero Date: Tue, 13 Aug 2024 17:36:17 +0200 Subject: [PATCH] fix hidden pages --- layouts/_default/list.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3911510f..cf454ee8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -54,6 +54,8 @@

{{- end }} {{- $pages := union .RegularPages .Sections }} +{{- /* CUSTOM: hidden articles */}} +{{- $pages = where $pages "Params.hidden" "!=" "true" -}} {{- if .IsHome }} {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} @@ -83,8 +85,6 @@

{{- $class = "post-entry tag-entry" }} {{- end }} -{{- /* CUSTOM: hidden articles */}} -{{- if not .Params.hidden }}
{{- /* CUSTOM: this adds post previews */}} {{- $isPreviewHidden := (site.Params.cover.hidden | default site.Params.cover.hiddenInList) }} @@ -126,7 +126,6 @@

{{- end }} -{{- end }} {{- if gt $paginator.TotalPages 1 }}