aboutsummaryrefslogtreecommitdiffhomepage
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.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/create/content_template_handler.go b/create/content_template_handler.go
index 5a8b4f63c..1576fabdb 100644
--- a/create/content_template_handler.go
+++ b/create/content_template_handler.go
@@ -90,7 +90,10 @@ func executeArcheTypeAsTemplate(s *hugolib.Site, name, kind, targetPath, archety
err error
)
- f := s.SourceSpec.NewFileInfo("", targetPath, false, nil)
+ f, err := s.SourceSpec.NewFileInfoFrom(targetPath, targetPath)
+ if err != nil {
+ return nil, err
+ }
if name == "" {
name = f.TranslationBaseName()