Hi all. A complete novice to Hugo here and I’m struggling a little understanding on how to range through specific post types.
I have a fictitious website that has the following pages…
Home
Product
– product A
– product b
– product c
Blog
– blog post a
– blog post b
– blog post c
Contact
On my index page, I have a section for products and a section for blog. So I would like to range through the products and select the “featured” products.
I also need to range through three latest blog posts.
I think my biggest issue right now is understanding how to tell Hugo to select specific pages.
I would have though… {{ range .Site.Blog }} and {{ range .Site.Products }}
Clearly that’s not right. Should I be using “type” in the front matter?