mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Add render template hooks for links and images
This commit also * revises the change detection for templates used by content files in server mode. * Adds a Page.RenderString method Fixes #6545 Fixes #4663 Closes #6043
This commit is contained in:
@@ -44,16 +44,13 @@ func (*TemplateProvider) Update(deps *deps.Deps) error {
|
||||
|
||||
}
|
||||
|
||||
return newTmpl.MarkReady()
|
||||
return newTmpl.markReady()
|
||||
|
||||
}
|
||||
|
||||
// Clone clones.
|
||||
func (*TemplateProvider) Clone(d *deps.Deps) error {
|
||||
|
||||
t := d.Tmpl.(*templateHandler)
|
||||
clone := t.clone(d)
|
||||
|
||||
return clone.MarkReady()
|
||||
|
||||
t.clone(d)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user