diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-22 20:30:01 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-22 22:00:42 +0200 |
commit | e908d955d25cc5a2a5c783de4de569399773e23e (patch) | |
tree | b87874c5ad69ed59ea7d8cd9e62da217f6790203 /create/content_template_handler.go | |
parent | 8b620f7a8a729943d279e20a3250304e7a7713cf (diff) |
create: Fix archetype regression when no archetype file
Fixes #3626
Diffstat (limited to 'create/content_template_handler.go')
-rw-r--r-- | create/content_template_handler.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/create/content_template_handler.go b/create/content_template_handler.go index 48e7f3b4b..d8c1fc71c 100644 --- a/create/content_template_handler.go +++ b/create/content_template_handler.go @@ -48,11 +48,11 @@ type ArchetypeFileData struct { } const ( - archetypeTemplateTemplate = `+++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" -date = {{ .Date }} -draft = true -+++` + archetypeTemplateTemplate = `--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +draft: true +---` ) func executeArcheTypeAsTemplate(s *hugolib.Site, kind, targetPath, archetypeFilename string) ([]byte, error) { |