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

github.com/IvanChou/hugo-theme-vec.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrashant Khurana <prashant@prashantkhurana.com>2017-09-09 23:33:19 +0300
committerPrashant Khurana <prashant@prashantkhurana.com>2017-09-09 23:36:08 +0300
commit812f275bd38f95718c119373dfff47b8ee202474 (patch)
tree66132e6aa35a71e6f1d1e535a7fd4759fc0bb348
parentca4367cf0f8cd64a96338cdc3a6342144c853821 (diff)
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
-rw-r--r--archetypes/default.md2
1 files changed, 2 insertions, 0 deletions
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