I have a site with content/page/
containing regular pages as individual .md files, and content/post/
containing blog posts. I want Hugo to generate a list page for the posts (/post
) but not for pages (/page
.
-
I can disable section pages completely with
disableKinds: ["section"]
in the config, but then I don’t get/post
generated. -
I tried creating
content/page/index.md
and addingheadless: true
in it, but then none of the pages get generated. Indeed the very existence ofcontent/page/index.md
suppresses generation of any other pages in that bundle (which I think is what the documentation says it should do.) -
Creating
content/page/_index.md
does nothing, even withheadless: true
in it. -
I thought I could customise the layout and content of
/page
using a template inlayouts/page/list.html
but a) I don’t want a customised output for that, I want it to not exist, and b) if I do create that file it gets used for the home page instead oflayouts/index.html
. What gives there?
Any suggestions on what else to try?