Hi all - a little stuck here (I’m new to Hugo)
I have a ficticious site that’s ste out the following way…
Home
Easy Walks
---- walk A
---- walk B
---- walk C
Difficult Walks
---- walk D
---- walk E
Adventure Walks
---- walk F
---- walk G
Contact
On the front-matter of some I have “featured: true” - I now want to range through the first 3 of all pages that featured is true and display on the index page.
I tried this…
{{ range first 3 (where .Pages ".Params.Featured" "true")}}
<h1>{{ .Title }}</h1>
{{ end }}
I also tried .Site.Pages - but it doesn’t work.
When I run Hugo server, I don’t get any error messages, I simply don’t get the data from .Title - so I assume I’m simply not calling the .Title correctly but can’t see my error.
Thanks