diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-09-01 10:03:10 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-09-01 10:04:20 +0200 |
commit | 469124823c8cb4477816686f56efdeebc79a9044 (patch) | |
tree | 37c473a1ac7e22989bf347d645e8fc5d70e5a0df /hugolib/page__content.go | |
parent | 96afea4acc7ca8cdfce460127b8ae17e303c77c0 (diff) | |
download | hugo-469124823c8cb4477816686f56efdeebc79a9044.tar.gz hugo-469124823c8cb4477816686f56efdeebc79a9044.zip |
Rename hstring.RenderedHTML => hstring.HTML
And add a comment about why it exists.
Diffstat (limited to 'hugolib/page__content.go')
-rw-r--r-- | hugolib/page__content.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page__content.go b/hugolib/page__content.go index 31080b929..cc93fe5d5 100644 --- a/hugolib/page__content.go +++ b/hugolib/page__content.go @@ -928,7 +928,7 @@ func (c *cachedContentScope) RenderString(ctx context.Context, args ...any) (tem contentToRenderv := args[sidx] - if _, ok := contentToRenderv.(hstring.RenderedHTML); ok { + if _, ok := contentToRenderv.(hstring.HTML); ok { // This content is already rendered, this is potentially // a infinite recursion. return "", errors.New("text is already rendered, repeating it may cause infinite recursion") |