We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
site config
defaultContentLanguage = 'en' defaultContentLanguageInSubdir = true [languages.en] weight = 1 [languages.de] weight = 2
content
content/ └── s1/ └── p1.de.md <-- draft = true
published
public/ ├── de/ │ └── s1/ │ ├── p1/ │ │ └── index.html │ └── index.html └── index.html
func TestFoo(t *testing.T) { t.Parallel() files := ` -- hugo.toml -- disableKinds = ['home','rss','sitemap','taxonomy','term'] defaultContentLanguage = 'en' defaultContentLanguageInSubdir = true [languages.en] weight = 1 [languages.de] weight = 2 -- content/s1/p1.de.md -- --- title: s1-p1-de draft: true --- -- layouts/_default/list.html -- {{ .Title }}| -- layouts/_default/single.html -- {{ .Title }}| ` b := hugolib.Test(t, files) b.AssertFileExists("public/de/s1/p1/index.html", false) }
Reference: https://discourse.gohugo.io/t/0-123-doesnt-have-drafts/48449
The text was updated successfully, but these errors were encountered:
Can confirm this behavior, rollback to 0.122.0 fixed the issue
Sorry, something went wrong.
Fix draft for non-default content when content in default language do…
8c31b29
…es not exist Fixes gohugoio#12132
Fix assets vs data issue
7cf6f84
And possibly some other related file mount issues. Fixes gohugoio#12132
be1dbba
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.
bep
No branches or pull requests
site config
content
published
failing test case
Reference: https://discourse.gohugo.io/t/0-123-doesnt-have-drafts/48449
The text was updated successfully, but these errors were encountered: