From f29650c2f156ea6f97c026213480875ce5244306 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sat, 16 Apr 2022 04:51:23 -0400 Subject: generators/hugo/layouts/_default/index.json: Only show regular pages --- generators/hugo/themes/tdro/layouts/_default/index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/hugo/themes/tdro/layouts/_default/index.json b/generators/hugo/themes/tdro/layouts/_default/index.json index 252a693..3c56806 100644 --- a/generators/hugo/themes/tdro/layouts/_default/index.json +++ b/generators/hugo/themes/tdro/layouts/_default/index.json @@ -4,7 +4,7 @@ "home_page_url": "{{ .Site.BaseURL }}", "feed_url": "{{ .Site.BaseURL }}/index.json", "items": [ - {{- range $index, $data := .Site.Pages -}} + {{- range $index, $data := where .Site.RegularPages ".Params.hidden" "!=" "true" -}} {{- if ne $data.Type "json" -}} {{- if and $index (gt $index 0) -}},{{- end }} { -- cgit v1.2.3