diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-03-05 09:51:14 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-03-05 12:51:57 +0100 |
commit | df5608f8a0706c6519f50b5497e36c21b8e790be (patch) | |
tree | a5bd23a5f67ac1d9e9a7915bf94aead301d1c503 /resources | |
parent | f56ce01ae1a3e5b399410ea8876ebc7321204edd (diff) | |
download | hugo-df5608f8a0706c6519f50b5497e36c21b8e790be.tar.gz hugo-df5608f8a0706c6519f50b5497e36c21b8e790be.zip |
Allow page.TableOfContents on self in shortcode
Fixes #10791
Diffstat (limited to 'resources')
-rw-r--r-- | resources/page/page_lazy_contentprovider.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/resources/page/page_lazy_contentprovider.go b/resources/page/page_lazy_contentprovider.go index d944b66d3..400b9e4f0 100644 --- a/resources/page/page_lazy_contentprovider.go +++ b/resources/page/page_lazy_contentprovider.go @@ -128,11 +128,6 @@ func (lcp *LazyContentProvider) RenderString(ctx context.Context, args ...any) ( return lcp.cp.RenderString(ctx, args...) } -func (lcp *LazyContentProvider) TableOfContents(ctx context.Context) template.HTML { - lcp.init.Do(ctx) - return lcp.cp.TableOfContents(ctx) -} - func (lcp *LazyContentProvider) ParseAndRenderContent(ctx context.Context, content []byte, renderTOC bool) (converter.ResultRender, error) { lcp.init.Do(ctx) return lcp.cp.ParseAndRenderContent(ctx, content, renderTOC) |