Loop over Pages

I can see you can loop over posts like so:
{{#foreach posts visibility="all"}}

However, is there a way to loop over pages?


I assume you’re seeing this on an index.hbs page, where a list of posts is provided to the template automatically.

If you want to make some sort of page list, you’d need to use the get helper to fetch the data you want, as no template in Ghost is automatically given a list of posts.