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
On a multilingual site, I would like to have a page:
with tags
without translation
Current Behavior
Cannot serve, error is "Error: Reason: `get_taxonomy_url`: couldn't find `*` in `tags` taxonomy":
RUST_BACKTRACE=1 zola serve
Building site...
Checking all internal links with anchors.
> Successfully checked 0 internal link(s) with anchors.
-> Creating 3 pages (0 orphan) and 1 sections
Error: Failed to serve the site
Error: Failed to render page '🙈/content/an-article.fr.md'
Error: Reason: Failed to render 'page.html'
Error: Reason: Function call 'get_taxonomy_url' failed
Error: Reason: `get_taxonomy_url`: couldn't find `foo` in `tags` taxonomy
Step to reproduce
create a multilingual site with a default language (for instance, English)
create a page with another language (for instance, French), for instance content/an-article.fr.md, that has tags (note that content/an-article.md does not exist)
May this be a configuration issue? For instance, I wonder if tags should be segregated by language. 💭
For the moment, my work-around is to deactivate tags on pages that have no default translation. 🙈
The text was updated successfully, but these errors were encountered:
The theme is not passing the current lang to the get_taxonomy_url so it's always trying to fetch the taxonomy for the default language. That's an issue in the theme itself.
The theme is not passing the current lang to the get_taxonomy_url so it's always trying to fetch the taxonomy for the default language. That's an issue in the theme itself.
Thank you, @Keats. 🤗
I will report this issue to the Apollo theme (and propose a fix, maybe). 🐛
How to put tags on a page without translation?
Environment
Zola version: 0.19.2.
Expected Behavior
On a multilingual site, I would like to have a page:
Current Behavior
Cannot serve, error is "Error: Reason: `get_taxonomy_url`: couldn't find `*` in `tags` taxonomy":
Step to reproduce
content/an-article.fr.md
, that has tags (note thatcontent/an-article.md
does not exist)zola serve
See this branch content for a full example (I also added another page named
another-article
but it is not required to reproduce the issue).Additional notes
May this be a configuration issue? For instance, I wonder if tags should be segregated by language. 💭
For the moment, my work-around is to deactivate tags on pages that have no default translation. 🙈
The text was updated successfully, but these errors were encountered: