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
content/ └── s1/ ├── p1/ │ └── index.md <-- .Page.GetPage "p2.md" from here fails ** └── p2.md <-- .Page.GetPage "p1" from here works
** But .Page.GetPage "p2" (no extension) works
.Page.GetPage "p2"
func TestFoo(t *testing.T) { t.Parallel() files := ` -- hugo.toml -- disableKinds = ['home','rss','section','sitemap','taxonomy','term'] -- content/s1/p1/index.md -- --- title: p1 layout: p1 --- -- content/s1/p2.md -- --- title: p2 layout: p2 --- -- layouts/_default/p1.html -- {{ (.GetPage "p2.md").Title }}| -- layouts/_default/p2.html -- {{ (.GetPage "p1").Title }}| ` b := hugolib.Test(t, files) b.AssertFileContent("public/s1/p1/index.html", "p2") // failing test b.AssertFileContent("public/s1/p2/index.html", "p1") }
Reference: https://discourse.gohugo.io/t/hugo-0-123-0-1-breaks-page-getpage/48403
The text was updated successfully, but these errors were encountered:
hugolib: Fix a .Page.GetPage from bundle case
72df836
Fixes gohugoio#12120
f521336
Fixes #12120
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.
Sorry, something went wrong.
bep
Successfully merging a pull request may close this issue.
** But
.Page.GetPage "p2"
(no extension) worksfailing test cast
Reference: https://discourse.gohugo.io/t/hugo-0-123-0-1-breaks-page-getpage/48403
The text was updated successfully, but these errors were encountered: