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
headless
content
content/ └── s1/ └── p1.md
config
[[cascade]] headless = true [cascade._target] path = '/s1**'
Hugo v0.122.0 emitted this warning...
WARN .File.TranslationBaseName on zero object. Wrap it in if or with: {{ with .File }}{{ .TranslationBaseName }}{{ end }}
...but still published s1/p1 (which I think was wrong too).
func TestFoo(t *testing.T) { t.Parallel() files := ` -- hugo.toml -- disableKinds = ['rss','sitemap','taxonomy','term'] [[cascade]] headless = true [cascade._target] path = '/s1**' -- content/s1/p1.md -- --- title: p1 --- -- layouts/_default/single.html -- {{ .Title }}| -- layouts/_default/list.html -- {{ .Title }}| ` b := hugolib.Test(t, files) b.AssertFileExists("public/index.html", true) b.AssertFileExists("public/s1/index.html", false) b.AssertFileExists("public/s1/p1/index.html", false) }
The text was updated successfully, but these errors were encountered:
Fix panic when cascading headless from site config to section that do…
e6f3be7
…es not have an _index.md file Fixes gohugoio#12172
17332a2
fce8d82
Thank you for the prompt fix!
Sorry, something went wrong.
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
content
config
Hugo v0.122.0 emitted this warning...
...but still published s1/p1 (which I think was wrong too).
failing test case
The text was updated successfully, but these errors were encountered: