From 57ca32f5d36027eb97b85da555876a99417427c5 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Wed, 17 Aug 2022 08:59:09 +0200 Subject: [PATCH] note on Roys content hierarchies part 2 --- content/notes/2022/08/17h08m53s44.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 content/notes/2022/08/17h08m53s44.md diff --git a/content/notes/2022/08/17h08m53s44.md b/content/notes/2022/08/17h08m53s44.md new file mode 100644 index 00000000..76dcd27d --- /dev/null +++ b/content/notes/2022/08/17h08m53s44.md @@ -0,0 +1,10 @@ +--- +date: 2022-08-17T08:53:44+02:00 +context: "https://roytang.net/comments/8bebec65-9eb0-469e-9bb0-a475c0282532/" +--- + +Gotcha, I wasn't aware that resources were the problem. There's a long discussion [on the discourse page of Hugo](https://discourse.gohugo.io/t/keep-images-content-together/51/83) regarding this, but the gist is: that also works! 😅 + +I just tried that with my site. If I simply move every resource from `/static` to the corresponding folder, e.g. `/content/post/2022/07/image.jpg`, then it works without any change. Keep in mind that I include my images using the path `../image.jpg` if you want your content file to be in the `07` folder as well. That's not needed if you create a separate dir for reach post, _and_ can be circumvented by hacking `render-image.html`. + +Anyway. I agree that the whole SSG system _can_ be needlessly complex (and confusing). To me, a Django or Wordpress setup doesn't alleviate that.