Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jrutheiser/hugo-lithium-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrode Nordahl <frode.nordahl@gmail.com>2018-02-03 12:22:59 +0300
committerFrode Nordahl <frode.nordahl@gmail.com>2018-02-03 12:22:59 +0300
commite63a6cb25da0c4c1ee78f8e52cf129058555cce0 (patch)
treed345650131b8c027d7403d9ccf9e3b517daac9be
parentfd7d1adc54ab47a04e4dd712d9d31143c0017776 (diff)
Add date and title to archetype file
From Hugo 0.24 this must be provided in the archetype file itself. Fixes #16
-rw-r--r--archetypes/default.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/archetypes/default.md b/archetypes/default.md
index 3b793e3..e69349d 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -1,3 +1,6 @@
+++
+title: "{{ replace .Name "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+++