note on Roys content hierarchies

This commit is contained in:
Wouter Groeneveld 2022-08-16 19:30:42 +02:00
parent b4cd9469b5
commit f77198dadd
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
---
date: 2022-08-16T19:23:20+02:00
context: "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](https://git.brainbaking.com/explore/repos). Again, this might be the fault of the sloppy docs and the arguably high learning curve.