aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__content.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-09-01 10:03:10 +0200
committerBjørn Erik Pedersen <[email protected]>2024-09-01 10:04:20 +0200
commit469124823c8cb4477816686f56efdeebc79a9044 (patch)
tree37c473a1ac7e22989bf347d645e8fc5d70e5a0df /hugolib/page__content.go
parent96afea4acc7ca8cdfce460127b8ae17e303c77c0 (diff)
downloadhugo-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.go2
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")