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/postgenerated. -
I tried creating
content/page/index.mdand addingheadless: truein it, but then none of the pages get generated. Indeed the very existence ofcontent/page/index.mdsuppresses generation of any other pages in that bundle (which I think is what the documentation says it should do.) -
Creating
content/page/_index.mddoes nothing, even withheadless: truein it. -
I thought I could customise the layout and content of
/pageusing a template inlayouts/page/list.htmlbut 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?