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
This may not be possible, in which case we should add a note to the content adapter documentation.
func TestFoo(t *testing.T) { t.Parallel() files := ` -- hugo.toml -- disableKinds = ['home','rss','section','sitemap','taxonomy','term'] [markup.goldmark.renderer] unsafe = true -- content/s1/_content.gotmpl -- {{ $page := dict "content" (dict "mediaType" "text/markdown" "value" "aaa <!--more--> bbb") "title" "p1" "path" "p1" }} {{ .AddPage $page }} -- layouts/_default/single.html -- summary: {{ .Summary }}|content: {{ .Content}} ` b := hugolib.Test(t, files) b.AssertFileContent("public/s1/p1/index.html", "summary: aaa|content: <p>aaa bbb</p>", ) }
The file content assertion fails. Actual content is:
summary: aaa bbb|content: <p>aaa <!--more--> bbb</p>
Note that (a) the summary isn't correct and (b) the <--more--> separator is passed through to content.
<--more-->
Reference: https://discourse.gohugo.io/t/content-adapters-content-summary-not-works/50096/
The text was updated successfully, but these errors were encountered:
content adapter: Handle <!--more--> separator in content.value
31a07ae
Closes gohugoio#12556
8848e2f
4cfdfa1
0221ddb
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.
This may not be possible, in which case we should add a note to the content adapter documentation.
The file content assertion fails. Actual content is:
Note that (a) the summary isn't correct and (b) the
<--more-->
separator is passed through to content.Reference: https://discourse.gohugo.io/t/content-adapters-content-summary-not-works/50096/
The text was updated successfully, but these errors were encountered: