(For reference, here is what my Hugo repository currently looks like: GitHub - ericswpark/ericswpark.github.io: Main website
And a link to the site (latest commit on
master branch): https://ericswpark.com)
Right now I have the directory structure set up like this:
content/ blog/ 2018/ 2018-02-21-sample-post.en.md 2018-02-21-sample-post.ko.md static/ img/ 2018/ sample-post/ example.jpg
I am wondering if something like this is possible:
content/ blog/ 2018/ sample-post/ 2018-02-21-sample-post.en.md 2018-02-21-sample-post.ko.md example.jpg
Couple of advantages:
- I can clearly see what asset belongs to which blog post
- Easier linking? Right now I directly do something like
![example](/img/2018/example.jpg)which feels wrong.
I read through the documentation and found the “page bundles” thing, but the documentation on it is incomplete and from what I can gather the final URL will end up something like the following:
But I want it to look like this:
Without manually setting it in the front matter.
Is this possible or should I structure my repository in a different way? Also, if it is possible, how should I “correctly” import images and other assets within the Markdown files?