diff options
Diffstat (limited to 'create/content.go')
-rw-r--r-- | create/content.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go index 55159c24c..10442c396 100644 --- a/create/content.go +++ b/create/content.go @@ -42,7 +42,7 @@ const ( // DefaultArchetypeTemplateTemplate is the template used in 'hugo new site' // and the template we use as a fall back. DefaultArchetypeTemplateTemplate = `--- -title: "{{ replace .Name "-" " " | title }}" +title: "{{ replace .File.ContentBaseName "-" " " | title }}" date: {{ .Date }} draft: true --- |