mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
@@ -26,11 +26,9 @@ var DefaultTemplateProvider *TemplateProvider
|
||||
// Update updates the Hugo Template System in the provided Deps
|
||||
// with all the additional features, templates & functions.
|
||||
func (*TemplateProvider) Update(deps *deps.Deps) error {
|
||||
|
||||
newTmpl := newTemplateAdapter(deps)
|
||||
deps.Tmpl = newTmpl
|
||||
|
||||
deps.TextTmpl = newTmpl.NewTextTemplate()
|
||||
deps.TextTmpl = newTmpl.wrapTextTemplate(newTmpl.text.standalone)
|
||||
|
||||
newTmpl.initFuncs()
|
||||
|
||||
@@ -56,8 +54,6 @@ func (*TemplateProvider) Clone(d *deps.Deps) error {
|
||||
t := d.Tmpl.(*templateHandler)
|
||||
clone := t.clone(d)
|
||||
|
||||
d.Tmpl = clone
|
||||
|
||||
return clone.MarkReady()
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user