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
I had a head scratching moment investigating a bug in the wild.
Here's a failing test:
func TestRenderShortcodesIncludeShortRefEdit(t *testing.T) { t.Parallel() files := ` -- hugo.toml -- disableLiveReload = true disableKinds = ["home", "taxonomy", "term", "section", "rss", "sitemap", "robotsTXT", "404"] -- content/first/p1.md -- --- title: "p1" --- ## p1-h1 {{% include "p2" %}} -- content/second/p2.md -- --- title: "p2" --- ### p2-h1 -- layouts/shortcodes/include.html -- {{ $p := site.GetPage (.Get 0) -}} {{ $p.RenderShortcodes -}} -- layouts/_default/single.html -- {{ .Content }} ` b := TestRunning(t, files) b.AssertFileContentEquals("public/first/p1/index.html", "<h2 id=\"p1-h1\">p1-h1</h2>\n<p></p>\n<h3 id=\"p2-h1\">p2-h1</h3>\n<p></p>\n") b.EditFileReplaceAll("content/second/p2.md", "p2-h1", "p2-h1-edited").Build() b.AssertFileContentEquals("public/first/p1/index.html", "<h2 id=\"p1-h1\">p1-h1</h2>\n<p></p>\n<h3 id=\"p2-h1-edited\">p2-h1-edited</h3>\n<p></p>\n") }
The above test passes if you use the full path to the content file to include:
{{% include "second/p2" %}}
The text was updated successfully, but these errors were encountered:
Fix stale pages on rebuilds in GetPage with short refs
8ffa9a4
Fixes gohugoio#13004
ef6b27f
30d9aea
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
No branches or pull requests
I had a head scratching moment investigating a bug in the wild.
Here's a failing test:
The above test passes if you use the full path to the content file to include:
The text was updated successfully, but these errors were encountered: