diff options
Diffstat (limited to 'hugolib/shortcode_page.go')
-rw-r--r-- | hugolib/shortcode_page.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/shortcode_page.go b/hugolib/shortcode_page.go index 7c32f2ea1..8030b0285 100644 --- a/hugolib/shortcode_page.go +++ b/hugolib/shortcode_page.go @@ -65,6 +65,7 @@ var zeroShortcode = prerenderedShortcode{} type pageForShortcode struct { page.PageWithoutContent page.TableOfContentsProvider + page.MarkupProvider page.ContentProvider // We need to replace it after we have rendered it, so provide a @@ -80,6 +81,7 @@ func newPageForShortcode(p *pageState) page.Page { return &pageForShortcode{ PageWithoutContent: p, TableOfContentsProvider: p, + MarkupProvider: page.NopPage, ContentProvider: page.NopPage, toc: template.HTML(tocShortcodePlaceholder), p: p, @@ -105,6 +107,7 @@ var _ types.Unwrapper = (*pageForRenderHooks)(nil) type pageForRenderHooks struct { page.PageWithoutContent page.TableOfContentsProvider + page.MarkupProvider page.ContentProvider p *pageState } @@ -112,6 +115,7 @@ type pageForRenderHooks struct { func newPageForRenderHook(p *pageState) page.Page { return &pageForRenderHooks{ PageWithoutContent: p, + MarkupProvider: page.NopPage, ContentProvider: page.NopPage, TableOfContentsProvider: p, p: p, |