skip to main content

Half-Baked Thought

 |  notes

In reply to: https://roytang.net/2022/08/hierarchies-partials/

Hugo only generates the root my-post/index.html from posts/my-post/index.md. (I had to run Hugo first to test this.)

No it doesn’t. That’s completely up to the theme and usage of your _index.md files.

For example, I organize my Brain Baking content like so: content/post/2022/07/whatevah-title.md. Works flawlessly. Notes like these reside in content/notes/2022/08/timestamp.md. On Jefklak’s Codex, it’s the folders content/games/switch/some-game.md or content/articles/long-article-stuff.md.

I maintain the same structure in my static/ folder, making including media super-easy: ![](done.jpg). Just make sure to convert it to an absolute path in your RSS—that’s what render-image.html is for.

If you really want to know, you can dig in the source of my Hugo themes. Again, this might be the fault of the sloppy docs and the arguably high learning curve.

Commenter photo Roy Tang said... A path like content/post/2022/07/whatevah-title.md doesn't work if you want to bundle your resources together w...

 | by 

I'm Wouter Groeneveld, a Brain Baker, and I love the smell of freshly baked thoughts (and bread) in the morning. I sometimes convince others to bake their brain (and bread) too.

If you found this article amusing and/or helpful, you can support me via PayPal or Ko-Fi. I also like to hear your feedback via Mastodon or e-mail. Thanks!