-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Page resources missing when language variant is draft #12105
Comments
I will test this, but one of the changes in v0.123.0 is that we don't duplicate resources (except in some cases) per language, so one resource file is attached to one language. That also means that if you draft the owning header, that resource also goes away. Does this match what you're seeing? |
That sounds good. But when I draft |
I can confirm the problem. Drafting a non-default language page removes the shared resource for all translations.
Content:
Expected output:
Actual output:
|
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. |
When you have different language variants of a page (say
example/index.md
andexample/index.de.md
) and one of them is a draft,.Resources.Get
and.Resources.GetMatch
returnnil
for any resources.In Hugo 0.122.0 it worked fine. Here's a minimal, reproducible example. Just unpack it and run
hugo
.quickstart.zip
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
The text was updated successfully, but these errors were encountered: