From 0221ddb39ee5d49387a779bc83af464e42fb3ebe Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Sat, 1 Jun 2024 10:27:10 +0200 Subject: content adapter: Handle separator in content.value Closes #12556 --- hugolib/page__per_output.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hugolib/page__per_output.go') 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 } -- cgit v1.2.3