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
Reference: https://discourse.gohugo.io/t/50052
This works:
{{ $content := dict "mediaType" "text/markdown" "value" "x{{< sc >}}" }}
This does not (nothing is rendered):
{{ $content := dict "mediaType" "text/markdown" "value" "{{< sc >}}" }}
Test case:
func TestFoo(t *testing.T) { t.Parallel() files := ` -- hugo.toml -- disableKinds = ['home','rss','section','sitemap','taxonomy','term'] -- content/_content.gotmpl -- {{ $content := dict "mediaType" "text/markdown" "value" "x{{< sc >}}" }} {{ .AddPage (dict "content" $content "path" "a") }} {{ $content := dict "mediaType" "text/markdown" "value" "{{< sc >}}" }} {{ .AddPage (dict "content" $content "path" "b") }} -- layouts/_default/single.html -- {{ .Content }}| -- layouts/shortcodes/sc.html -- foo {{- /**/ -}} ` b := hugolib.Test(t, files) b.AssertFileContent("public/a/index.html", "<p>xfoo</p>") b.AssertFileContent("public/b/index.html", "<p>foo</p>") // fails }
The text was updated successfully, but these errors were encountered:
content adapter: Fix issue with content starting out with a shortcode
98503ac
Fixes #12544
519f41d
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
Reference: https://discourse.gohugo.io/t/50052
This works:
This does not (nothing is rendered):
Test case:
The text was updated successfully, but these errors were encountered: