I want to have one section called
news that’s for blog posts (which is easy, it happens like magic) and all the other sections for structured content. For example, I want a section like this:
content └── comics <-- an overview page with images, text, and links ├── published work <-- a page where I list published work ├── love-death-driving <-- a page about a specific comic ├── this-was-2020 <-- another page about a different comic └── comic-object <-- a page about a type of art pieces
At first, I made all the subpages
.md files, and of course Hugo replaced my top-level page with a list, which I now understand.
Now I’m making each subpage a directory to get pretty URLs, so I have for example
content/comics/comic-object/index.md so that the URL will be
But what I’m getting instead is that in the Hugo server preview
localhost:1313/comics becomes a list page randomly. Sometimes it goes back to displaying the content in my
index.md file, sometimes it stubbornly remains a list, and when it does, sometimes not all the subfolders even show up in the list.
I just want Hugo to render my
index.md in each of my top-level section folders, except the
news folder which will be a growing list of posts.
Because the behavior seems to change randomly, I have no idea what to do. It seems to change sometimes when I use
_index.md instead of
index.md (or sometimes not, or sometimes does the opposite) and it seems to change sometimes if I just go into
index.md and make a small change and save the file. Or it will stay the same. Until it doesn’t. Sometimes if I restart the server, the top-level page comes back the way I want it (my content, not a list) but the subpages are gone (still in the folders, but not rendered).
Is there a thing I’m supposed to be doing? Can’t figure this out after a couple hours with the docs.