Hugo not building files in some folder

I have a pretty simple site with the following structure

/contents
== index.md
==/papers
==== _index.md
====paper1.md
====paper2.md

When I use the hugo server command, my site is locally built normally. But when I use hugo to build the site, the papers folder is ignored. In particular, if I open the files in the public/papers folder are still the ones produces by hugo server and are not ready to be deployed (links using localhost instead of my real site address, no minification and so on). I even tried to delete everything from the public folder and run hugo and the papers folder is not even created in public. How can I solve this?

Rename content/index.md to content/_index.md and your site will start working as it should.

See Page bundles | Hugo

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.