diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-04-16 04:51:23 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-04-16 04:51:23 -0400 |
commit | f29650c2f156ea6f97c026213480875ce5244306 (patch) | |
tree | a94b4e4810add0dcf646501178bcbe3a4211a1d8 | |
parent | de865f38ddc6bfd7ae42e6f7819f4dc4713f160e (diff) | |
download | thedroneely.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.json | 2 |
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 }} { |