System information
zola 0.20.0
tabi 1bb3343
Expected behaviour
The image shortcodes should pass the src argument as-is to the img element, while also keeping support for the image width and height.
Actual behaviour
Tabi gives the colocated path without the language prepended to image elements. When there is no default-language page in the same directory as an image, the image is inaccessible.
Steps to reproduce
zola init
echo "[languages.fi]" >> config.toml
mkdir -p content/foo
echo -e "+++\n+++\n" > content/foo/index.fi.md
echo test > content/foo/asset.txt
zola build
ls public/foo/asset.txt # as imported when raw_path=false, does not exist
ls public/fi/foo/asset.txt # as imported when raw_path=true, exists
echo -e "+++\n+++\n" > content/foo/index.md
zola build
ls public/foo/asset.txt # as imported when raw_path=false, exists
ls public/fi/foo/asset.txt # as imported when raw_path=true, exists
Additional context
When Zola can handle the path given to image elements, it can change its logic independent of Tabi's. In the future, it may be better to use public/foo/asset.txt in all language versions of the foo page.
Final checklist
System information
zola 0.20.0
tabi 1bb3343
Expected behaviour
The image shortcodes should pass the
srcargument as-is to theimgelement, while also keeping support for the image width and height.Actual behaviour
Tabi gives the colocated path without the language prepended to image elements. When there is no default-language page in the same directory as an image, the image is inaccessible.
Steps to reproduce
Additional context
When Zola can handle the path given to image elements, it can change its logic independent of Tabi's. In the future, it may be better to use
public/foo/asset.txtin all language versions of thefoopage.Final checklist