I have the following files in the root of /content
/content/{about,disclaimer,mission,social-contract}.md
Their front matter is:
+++
...
featured = true
...
+++
And in a partial.
{{ range first 3 (where .Site.RegularPages "Params.featured" "true") | shuffle }}
However I am not seeing them displayed on the front end. I also tried .Site.AllPages, but still I’m not seeing anything. What am I doing wrong?
I’m sure this should work. I can’t seem to find any other code that might prevent this from working.
EDIT: The front matter should be featured = "true"
apparently. Even boolean values have to be quoted as string in TOML. However, GitHub - toml-lang/toml: Tom's Obvious, Minimal Language says that something = true
should be valid. So I’m hoping it’s not a bug in Hugo’s TOML parsing.