You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My markdown project has a given folder with some .md files and a subfolder images with some images. I want to be able to see the images in both my markdown editors (MarkText or VsCode) and in the browser running ../zola serve.
Using <img src="images/test.png"> works in my markdown editors, however in the browser it doesn't load because the path has my current folder duplicated. For instance, my folder structure: docs/introduction/introduction.md and docs/introduction/images/test.png. When opening in the browser using zola the image path is pointing to docs/introduction/introduction/images/test.png which doesn't exist (note 'introduction' duplicated in the path), so the image doesn't load. If I edit the <img> src to add ../ in the beginning it works, however the markdown editors fail to load the image.
Environment
Zola version: 0.20.0
Expected Behavior
I expect the image path in the browser to not duplicate my current folder.
System
I'm running zola on PorteuX 1.9 x64 (Linux)
The text was updated successfully, but these errors were encountered:
Investigating this a bit further, I noticed that when using multilanguage, Zola creates the language folder in the beginning of the path (e.g. for Spanish http://127.0.0.1:1111/es/docs/introduction/), which breaks the possibility of using images with relative paths.
Or maybe there's a configuration thing I'm missing.
Bug Report
My markdown project has a given folder with some .md files and a subfolder
images
with some images. I want to be able to see the images in both my markdown editors (MarkText or VsCode) and in the browser running../zola serve
.Using
<img src="images/test.png">
works in my markdown editors, however in the browser it doesn't load because the path has my current folder duplicated. For instance, my folder structure:docs/introduction/introduction.md
anddocs/introduction/images/test.png
. When opening in the browser using zola the image path is pointing todocs/introduction/introduction/images/test.png
which doesn't exist (note 'introduction' duplicated in the path), so the image doesn't load. If I edit the<img>
src to add../
in the beginning it works, however the markdown editors fail to load the image.Environment
Zola version: 0.20.0
Expected Behavior
I expect the image path in the browser to not duplicate my current folder.
System
I'm running zola on PorteuX 1.9 x64 (Linux)
The text was updated successfully, but these errors were encountered: