brainbaking/content/notes/2022/08/17h08m53s44.md

940 B

date context
2022-08-17T08:53:44+02:00 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 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.