I’m doing it this way (the new way) with gallery items on my site. I was previously setting them to headless
and using readDir
, but I wanted to paginate them, and pagination only works with an actual Pages
collection:
My gallery’s _index.html
looks like this, to make all the gallery items get listed but for no physical pages to get generated for them:
+++
title = "Gallery"
layout = "gallery"
[_build]
render = "always"
[cascade._build]
render = "never"
list = "local"
+++
<p>Photo gallery for this site.</p>
Can see the result at: Gallery - Jaza's World Trip