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
_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"
render = "always"
render = "never"
list = "local"
<p>Photo gallery for this site.</p>
Can see the result at: Gallery - Jaza's World Trip