Hello.I just tried to migrate from hexo to hugo.
However,there is something wrong with the asset of each post.I went through https://github.com/gohugoio/hugo/issues/1768 , but I still feel confused.
Hexo: there is a config called post_asset_folder ,it allows each post has its own asset folder (folder name is same as post title).
├─test_title.md └─test_title ├─a.png ├─b.jpg └─c.pdf
then,I can add images to test_title.md with a relative path:
then I can preview it locally with vscode.and all the images are in seperate folder.
Hugo: I find that all the images should be in the static folder. for example:
├─archetypes ├─content ├─test_title.md ├─data ├─layouts ├─static ├─a.png └─themes
in the test_title.md the link looks like:
I can only preview it using “hugo server” with the browser. and it is hard to keep all the images well organized,unless i create a similar folder tree in the static folder.
By the way there is another small program:
I use git to manage my notes. when using hexo I can new a site and clone my note into _posts dir and it is done.
when using the hugo.if i clone my notes into content folder,the images will not show as expected.
either I create a new repo containing the hugo dir(content,staic…etc) and fix the image links. or I create a new repo to manage all the images and fix the image links.
So,is there a way to work aroud with the post asset folder?
or is it possible to add such feature?