From 812f275bd38f95718c119373dfff47b8ee202474 Mon Sep 17 00:00:00 2001 From: Prashant Khurana Date: Sat, 9 Sep 2017 16:33:19 -0400 Subject: Hugo requires title,date etc in archtype file Hugo's new version (0.24 onwards) requires a few things in the archytpe file otherwise it gives a warning. Warning : WARNING: date and/or title missing from archetype file From Hugo 0.24 this must be provided in the archetype file itself, if needed. Example: title: "{{ replace .TranslationBaseName "-" " " | title }}" date: {{ .Date }} draft: true --- archetypes/default.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archetypes/default.md b/archetypes/default.md index 9fbecf2..d491519 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -3,4 +3,6 @@ toc = false draft = true comments = false slug = "" +title = "{{ replace .TranslationBaseName "-" " " | title }}" +date = {{ .Date }} +++ \ No newline at end of file -- cgit v1.2.3