summaryrefslogtreecommitdiffstats
path: root/hugolib/content_factory.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/content_factory.go')
-rw-r--r--hugolib/content_factory.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/content_factory.go b/hugolib/content_factory.go
index 017a0bc97..e22f46513 100644
--- a/hugolib/content_factory.go
+++ b/hugolib/content_factory.go
@@ -14,6 +14,7 @@
package hugolib
import (
+ "context"
"fmt"
"io"
"path/filepath"
@@ -83,7 +84,7 @@ func (f ContentFactory) ApplyArchetypeTemplate(w io.Writer, p page.Page, archety
return fmt.Errorf("failed to parse archetype template: %s: %w", err, err)
}
- result, err := executeToString(ps.s.Tmpl(), templ, d)
+ result, err := executeToString(context.TODO(), ps.s.Tmpl(), templ, d)
if err != nil {
return fmt.Errorf("failed to execute archetype template: %s: %w", err, err)
}