Unlisted Pages in Hugo
Brian P. Hogan - https://bphogan.com/2020/08/11/2020-08-11-creating-unlisted-content-in-hugo/
layouts/_default/list.html (is not working? - is in tags section for me) {{ range .Pages }} {{ range (where .Pages “.Params.unlisted” “!=” “true”) }}
pagination (works, but leaves empty section, can get empty page): {{ range $paginator.Pages }} {{ range (where $paginator.Pages “.Params.unlisted” “!=” “true”) }}
layouts/_default/rss.xml (append this line after {{- end -}} but before {{ printf … }}) {{- $pages = (where $pages “.Params.unlisted” “!=” “true”) -}}
layouts/_default/index.*sitemap.xml {{ range .Site.Pages }} {{ range (where .Site.Pages “.Params.unlisted” “!=” “true”) }}