mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
@@ -114,7 +114,7 @@ type ContentRenderer interface {
|
||||
// For internal use only.
|
||||
ParseContent(ctx context.Context, content []byte) (converter.ResultParse, bool, error)
|
||||
// For internal use only.
|
||||
RenderContent(ctx context.Context, content []byte, doc any) (converter.ResultRender, bool, error)
|
||||
RenderContent(ctx context.Context, content []byte, sourceInfo, doc any) (converter.ResultRender, bool, error)
|
||||
}
|
||||
|
||||
// FileProvider provides the source file.
|
||||
|
||||
@@ -133,6 +133,6 @@ func (lcp *LazyContentProvider) ParseContent(ctx context.Context, content []byte
|
||||
return lcp.init.Value(ctx).ParseContent(ctx, content)
|
||||
}
|
||||
|
||||
func (lcp *LazyContentProvider) RenderContent(ctx context.Context, content []byte, doc any) (converter.ResultRender, bool, error) {
|
||||
return lcp.init.Value(ctx).RenderContent(ctx, content, doc)
|
||||
func (lcp *LazyContentProvider) RenderContent(ctx context.Context, content []byte, sourceInfo, doc any) (converter.ResultRender, bool, error) {
|
||||
return lcp.init.Value(ctx).RenderContent(ctx, content, sourceInfo, doc)
|
||||
}
|
||||
|
||||
@@ -522,7 +522,7 @@ func (r *nopContentRenderer) ParseContent(ctx context.Context, content []byte) (
|
||||
return nil, false, nil
|
||||
}
|
||||
|
||||
func (r *nopContentRenderer) RenderContent(ctx context.Context, content []byte, doc any) (converter.ResultRender, bool, error) {
|
||||
func (r *nopContentRenderer) RenderContent(ctx context.Context, content []byte, sourceInfo, doc any) (converter.ResultRender, bool, error) {
|
||||
return nil, false, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user