But, getting back to your original requirement:
view it on vscode and website at a same path
If the images will be used throughout the site:
-
Create an
imagesdirectory to the root of your project -
Add this to your site configuration
[[module.mounts]] source = 'static' target = 'static' [[module.mounts]] source = 'images' target = 'static/images' -
Reference the image in your markdown with:

If your baseURL has a subdirectory (e.g., https://example.org/foo/), we will need to revisit this.