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

github.com/matcornic/hugo-theme-learn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatcornic <mathieu.cornic@gmail.com>2017-07-27 22:42:07 +0300
committermatcornic <mathieu.cornic@gmail.com>2017-08-21 00:43:44 +0300
commitb2ac8298bf29db6c6e0abf6997add812ea690de5 (patch)
tree1958954b1fda9ec5094a8b0753db315a95ea2526 /archetypes
parent27b99f0f181ea4c7e3a3d01bed4b68c3f5a090ec (diff)
feat: support of Hugo 0.22+ #51 #48 #11 #50
Diffstat (limited to 'archetypes')
-rw-r--r--archetypes/chapter.md13
-rw-r--r--archetypes/default.md8
2 files changed, 12 insertions, 9 deletions
diff --git a/archetypes/chapter.md b/archetypes/chapter.md
index 1d97521..36bd987 100644
--- a/archetypes/chapter.md
+++ b/archetypes/chapter.md
@@ -1,11 +1,12 @@
---
-title: "Some Chapter title"
-weight: 0
-icon: "<b>X. </b>" # HTML code as prefix in the menu
+title: "{{ replace .TranslationBaseName "-" " " | title }}"
+date: {{ .Date }}
+weight: 5
+pre: "<b>X. </b>" # HTML code as prefix in the menu
+draft: true
---
### Chapter X
-# Some Chapter title
-
-Lorem ipsum
+Lorem Ipsum.
+Notice `draft` is set to true. \ No newline at end of file
diff --git a/archetypes/default.md b/archetypes/default.md
index e47481e..7d8f53c 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -1,7 +1,9 @@
---
-title: "Some Title"
+title: "{{ replace .TranslationBaseName "-" " " | title }}"
+date: {{ .Date }}
weight: 5
-toc: true
+draft: true
---
-Lorem Ipsum
+Lorem Ipsum.
+Notice `draft` is set to true. \ No newline at end of file