diff options
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/page__meta.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go index 36c314d9d..435b95473 100644 --- a/hugolib/page__meta.go +++ b/hugolib/page__meta.go @@ -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, }, ) |