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
[outputFormats.rss] isPlainText = true
{{ $s := "<hr>" }} {{ $s }}
<hr>
<hr>
If I include the output format identifier in the template file name (e.g., layouts/_default/list.rss.xml) I get the expected result.
layouts/_default/list.rss.xml
This may be unique to the isPlainText parameter, or it may affect all output format parameters... not sure.
isPlainText
I'm pretty sure this is unique to the rss output format.
rss
func TestFoo(t *testing.T) { t.Parallel() files := ` -- hugo.toml -- ## disableKinds = ['page','home','section','sitemap','taxonomy','term'] [outputFormats.rss] isPlainText = true [outputs] home = ['rss'] -- layouts/_default/list.rss.xml -- {{ $s := "<hr>" }} {{ $s }} ` b := hugolib.Test(t, files) b.AssertFileContent("public/index.xml", "<hr>") files = strings.ReplaceAll(files, "layouts/_default/list.rss.xml", "layouts/_default/list.xml") b = hugolib.Test(t, files) b.AssertFileContent("public/index.xml", "<hr>") // failing test }
The text was updated successfully, but these errors were encountered:
I suspect this comes from some history about being backward compatible with rss being both a page kind and a output format.
Sorry, something went wrong.
Understood. This is obviously not a high priority item. I just wanted to make sure we were tracking it somewhere.
No branches or pull requests
hugo.toml
layouts/_default/list.xml
public/index.xml (expected)
public/index.xml (actual)
If I include the output format identifier in the template file name (e.g.,
layouts/_default/list.rss.xml
) I get the expected result.This may be unique to the
isPlainText
parameter, or it may affect all output format parameters... not sure.I'm pretty sure this is unique to the
rss
output format.integration test
The text was updated successfully, but these errors were encountered: