I really can’t figure out the very basics of content structure ︎ generated.
I’ve used other static-site generators for years and recently decided to try Hugo for a new project.
Essentially it is a collection of documents (mainly markdown) that lives in some file directories.
I’d like to have a corresponding file structure generated.
However, I’ve now spent several days on this, carefully reading every part of the Hugo documentation website, and in the end, I’ve exhausted all ideas.
The following graphic summarizes my problem:
If I rename
content/windows/panels/_index.md then the
public/windows/dialogs.html document disappears (no longer being generated), but! the
property-panels document suddenly is now generated.
If I instead rename
content/windows/panels/foo.md then both
public/windows/panels/property-panels.html is generated, but now I’m missing
This seems to be a bug, or possibly an overly-complex set of undocumented rules of how content is interpreted.
I’d expect Hugo to do the most obvious thing out of the box — to mirror the content file tree (generate an identical tree of .html files.)