mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
templates: Fix handling of multiple defers in the same template
Fixes #13236
This commit is contained in:
@@ -508,6 +508,7 @@ func (s *Site) executeDeferredTemplates(de *deps.DeferredExecutions) error {
|
||||
}
|
||||
|
||||
content = append(content[:low], append([]byte(deferred.Result), content[high:]...)...)
|
||||
forward = len(deferred.Result)
|
||||
changed = true
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user