Hi,
I’m using HUGO to build my blog and I want to read it in local with Obsidian.md but I have a problem with the view of images.
I can’t link images properly in Obsidian and the result is that the image does not exist, because the “/static” folder is not refereed when linking an image.
I would like to see the articles of my blog with Obsidian and not rendering every time to see in localhost with hugo server
.
├── assets/
├── content/
├── descriptions/
├── post/
test.md
├── public/
├── resources/
├── static/
├── img/
├── test.jpg
├── sample-video.mp4
└── themes/
The article test.md
has a link to test.jpg
but I can’t see the content in Obsidian with this link format ![test|100x200](/img/test/test.jpg#center)
Solution
Put the links in HUGO as:
- Absolute path from vault:
![Test|100x200](/static/img/test/test.jpg#center)
or![Test|100x200](static/img/test/test.jpg#center)
- Relative path:
![Test|100x200](../../static/img/test/Test.jpg#center)
or - File name:
![Test|100x200](Test.jpg#center)
How can I do that? Thanks.