diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-06-01 10:27:10 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-06-01 12:04:05 +0200 |
commit | 0221ddb39ee5d49387a779bc83af464e42fb3ebe (patch) | |
tree | 33ff51d4a795e396189b4bd3c2654427bf279b81 /hugolib/page__per_output.go | |
parent | 74b9b8a2297852f37be55d4e12acb79de492707b (diff) | |
download | hugo-0221ddb39ee5d49387a779bc83af464e42fb3ebe.tar.gz hugo-0221ddb39ee5d49387a779bc83af464e42fb3ebe.zip |
content adapter: Handle <!--more--> separator in content.value
Closes #12556
Diffstat (limited to 'hugolib/page__per_output.go')
-rw-r--r-- | hugolib/page__per_output.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hugolib/page__per_output.go b/hugolib/page__per_output.go index 5b039b91b..6dffd18a5 100644 --- a/hugolib/page__per_output.go +++ b/hugolib/page__per_output.go @@ -307,7 +307,10 @@ func (pco *pageContentOutput) RenderString(ctx context.Context, args ...any) (te if pageparser.HasShortcode(contentToRender) { contentToRenderb := []byte(contentToRender) // String contains a shortcode. - parseInfo.itemsStep1, err = pageparser.ParseBytesMain(contentToRenderb, pageparser.Config{}) + parseInfo.itemsStep1, err = pageparser.ParseBytes(contentToRenderb, pageparser.Config{ + NoFrontMatter: true, + NoSummaryDivider: true, + }) if err != nil { return "", err } |