From 8ff8e97da55a6a56190aabb2f37d91b22702cf60 Mon Sep 17 00:00:00 2001 From: steveoh Date: Thu, 29 Jun 2017 11:01:47 -0600 Subject: [PATCH] update for hugo 0.24 From Hugo 0.24 this must be provided in the archetype file itself, if needed. Example: --- title: "{{ replace .TranslationBaseName "-" " " | title }}" date: {{ .Date }} draft: true --- --- site/archetypes/incidents.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/site/archetypes/incidents.md b/site/archetypes/incidents.md index b009873..26d2a53 100644 --- a/site/archetypes/incidents.md +++ b/site/archetypes/incidents.md @@ -1,9 +1,8 @@ +++ # default attributes for an incident. # -# Hugo adds `title` and `date` by default -# when running `hugo new incidents/new-incident.md`, -# so we don't have to specify them here. +title = "{{ replace .TranslationBaseName "-" " " | title }}" +date = {{ .Date }} # severity: represents the impact of # your system due to the current incident.