{{ .range }} through specific folder

So I use {{ range .Site.RegularPages }} in my homepage to loop through blog posts, But this brings ALL the pages including the ones in the /pages folder which are not posts.

How can I only loop through /posts section? What is the query?

1 Like
{{- range where .Site.RegularPages "Type" "posts" -}}
2 Likes

Thank you !

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.