What I want to do is, on /content/section1/mypost.md, putting an image form /static/img/img1.png
at the same time, I want to preview my markdown file by other markdown editor or some text editor. so I want to use this relative path ![img1](../../static/img/img1.png) on mypost.md so that I can preview.
I tried this image path ![img1](../../static/img/img1.png) after command ‘hugo’ but ended up missing the image. Why?
How can I do that? Is this possible?
Assets that you place in /static are copied to the root of your web site. So, /static/img/foo.jpg has a site-relative path of /img/foo.jpg. Given your example, either of these will render correctly in the browser: