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
What version of Hugo are you using (hugo version)?
$ hugo version
hugo v0.107.0-2221b5b30a285d01220a26a82305906ad3291880+extended linux/amd64 BuildDate=2022-11-24T13:59:45Z VendorInfo=gohugoio
Does this issue reproduce with the latest release?
Yes.
Details
When using Hugo to render asciidoc articles containing diagrams by default it puts diagram images to the folder without language prefix even for multilingual projects.
Scenario 1 (single language) - OK
E.g. I have a project with a single language and an article content/post/post-3.ru.adoc with a diagram which will be rendered to:
$ tree public/post/post-3/
public/post/post-3/
├── index.html
└── sequence-diagram-example.svg
It works just fine, post-3 will reference its diagram from public/post/post-3 directory.
Scenario 2 (project with language directories) - FAIL
Now I have a project with several languages - each of them in its own directory, config.toml:
jmooring
changed the title
[asciidoctor] Incorrect diagram directory in multilingual project
Incorrect diagram directory in multilingual project with asciidoctor
May 30, 2023
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Details
When using Hugo to render asciidoc articles containing diagrams by default it puts diagram images to the folder without language prefix even for multilingual projects.
Scenario 1 (single language) - OK
E.g. I have a project with a single language and an article
content/post/post-3.ru.adoc
with a diagram which will be rendered to:It works just fine,
post-3
will reference its diagram frompublic/post/post-3
directory.Scenario 2 (project with language directories) - FAIL
Now I have a project with several languages - each of them in its own directory,
config.toml
:post-3
will be put to (and tries to reference diagram from here):But diagram still located in non-language directory:
Workaround
For now I'm able to bypass that issue by manually setting image location in each article. From above example:
The text was updated successfully, but these errors were encountered: