Empty section does not render to public folder

Correct me if i’m wrong but if i have a section called posts and there is no content in its directory yet, an index file for the section will not be generated into the public directory? Only once a post is added will the section index be generated. Shouldn’t this be generated regardless if there are any posts within?

I can confirm this. I have an empty directory /content/projects. Hugo does not produce an index file for /projects/.

I believe the general intent for this index file is to render out an li.html or summary.html for each of the contained files so I’m not surprised that it doesn’t create an index file for an empty directory.

Is this the intended behaviour or just an oversight? I’m not sure how difficult this would be to implement or whether it would even be on the roadmap or not.

I haven’t looked into it, but I guess sections are created from content and not the directory. No content, no section. Not sure how hard to change - but I would start by creating a GitHub issue.

Will do