commit 57da91aef0467f08b4059b75b146b1ca11d3298f parent 42cf69f12ab1d4f954adefc165284f23df9e4e7b Author: Chris Bracken <chris@bracken.jp> Date: Sun, 17 Feb 2019 16:21:36 -0800 Update the default archetype, add post archetype Diffstat:
M | archetypes/default.md | | | 6 | ++++-- |
A | archetypes/post.md | | | 6 | ++++++ |
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git 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 @@ -0,0 +1,6 @@ +--- +title: "{{ replaceRE "(?:\\d+-){3}" "" .Name | replaceRE "-" " " | title }}" +date: {{ .Date }} +tags: +draft: true +---