New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create language-specific 404 template #10400
Comments
It is a known issue. You need to use the |
@jafaican hi, that would be a nice fix! |
jmooring
changed the title
Inconsistency in multilingual mode with 404 pages
404 template is not language aware
May 6, 2023
jmooring
changed the title
404 template is not language aware
Cannot create language-specific 404 template
May 6, 2023
This was fixed with v0.123.0.
Expected output:
Then run:
Expected output:
|
jmooring
added a commit
to jmooring/hugo-testing
that referenced
this issue
Apr 14, 2024
gohugoio/hugo#10400 was resolved in v0.123.0.
jmooring
added a commit
to jmooring/hugo-testing
that referenced
this issue
Apr 14, 2024
gohugoio/hugo#10400 was resolved in v0.123.0.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
yes
Description
It's not possible to use the folder pattern to have a different 404 per each language.
For example,
layouts/404.html
-layouts/404.zh.html
won't work.The only way I can make it work consists of using the
i18n
helper in a block:It's not very convenient, especially when your 404 layout needs another base template (usually much lighter than the global
baseof
).My question is the following: is it something known and wanted?
The text was updated successfully, but these errors were encountered: