mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Prevent WARNINGs in RenderString
This commit is contained in:
		@@ -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,
 | 
			
		||||
		},
 | 
			
		||||
	)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user