summaryrefslogtreecommitdiffstats
path: root/create/content_template_handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'create/content_template_handler.go')
-rw-r--r--create/content_template_handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/create/content_template_handler.go b/create/content_template_handler.go
index d73c52a24..0a444abf6 100644
--- a/create/content_template_handler.go
+++ b/create/content_template_handler.go
@@ -45,7 +45,7 @@ type ArchetypeFileData struct {
// The target content file. Note that the .Content will be empty, as that
// has not been created yet.
- *source.File
+ source.File
}
const (
@@ -82,7 +82,7 @@ func executeArcheTypeAsTemplate(s *hugolib.Site, kind, targetPath, archetypeFile
)
sp := source.NewSourceSpec(s.Deps.Cfg, s.Deps.Fs)
- f := sp.NewFile(targetPath)
+ f := sp.NewFileInfo("", targetPath, nil)
data := ArchetypeFileData{
Type: kind,