mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Prevent WARNINGs in RenderString
This commit is contained in:
parent
4d7fa9f114
commit
32344fe3db
1 changed files with 7 additions and 2 deletions
|
@ -727,11 +727,16 @@ func (p *pageMeta) newContentConverter(ps *pageState, markup string, renderingCo
|
|||
return converter.NopConverter, errors.Errorf("no content renderer found for markup %q", p.markup)
|
||||
}
|
||||
|
||||
var id string
|
||||
if !p.f.IsZero() {
|
||||
id = p.f.UniqueID()
|
||||
}
|
||||
|
||||
cpp, err := cp.New(
|
||||
converter.DocumentContext{
|
||||
Document: newPageForRenderHook(ps),
|
||||
DocumentID: p.f.UniqueID(),
|
||||
DocumentName: p.f.Path(),
|
||||
DocumentID: id,
|
||||
DocumentName: p.Path(),
|
||||
ConfigOverrides: renderingConfigOverrides,
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue