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

github.com/danielkvist/hugo-terrassa-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2018-12-04 21:58:23 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2018-12-04 21:58:23 +0300
commit66860872f7b85b07dbf00ef54c0abdc28e1eecd2 (patch)
tree419a0b993469f4230e57491fa641e3f338f2bcb1 /archetypes
parent829666ee915edfb7813594ea7ab34fbc1e8333b1 (diff)
add basic archetype for posts
Diffstat (limited to 'archetypes')
-rw-r--r--archetypes/default.md6
-rw-r--r--archetypes/post.md11
2 files changed, 15 insertions, 2 deletions
diff --git a/archetypes/default.md b/archetypes/default.md
index ac36e06..21985ce 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -1,2 +1,4 @@
-+++
-+++
+---
+title: "{{ replace .Name "-" " " | title }}"
+draft: true
+---
diff --git a/archetypes/post.md b/archetypes/post.md
new file mode 100644
index 0000000..c9bd76f
--- /dev/null
+++ b/archetypes/post.md
@@ -0,0 +1,11 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+date: {{ .Date }}
+publishDate: {{ now.Format "2006-01-02" }}
+author: "John Doe"
+draft: true
+description: ""
+tags: []
+---
+
+## Somethign Awesome