aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-04-16 04:51:23 -0400
committerThedro Neely <thedroneely@gmail.com>2022-04-16 04:51:23 -0400
commitf29650c2f156ea6f97c026213480875ce5244306 (patch)
treea94b4e4810add0dcf646501178bcbe3a4211a1d8
parentde865f38ddc6bfd7ae42e6f7819f4dc4713f160e (diff)
downloadthedroneely.com-f29650c2f156ea6f97c026213480875ce5244306.tar.gz
thedroneely.com-f29650c2f156ea6f97c026213480875ce5244306.tar.bz2
thedroneely.com-f29650c2f156ea6f97c026213480875ce5244306.zip
generators/hugo/layouts/_default/index.json: Only show regular pages
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/index.json2
1 files changed, 1 insertions, 1 deletions
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 }}
{