commit 4fb702fa0e57e4ceeffad3fde3f96ee8198793cf
parent d17f178209c73a37b024744d6c725c3000d70fea
Author: Chris Bracken <chris@bracken.jp>
Date: Fri, 24 May 2019 14:24:56 -0700
Add slug to post archetype front matter
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/archetypes/post.md b/archetypes/post.md
@@ -1,6 +1,7 @@
+++
title = "{{ replaceRE "(?:\\d+-){3}" "" .Name | replaceRE "-" " " | title }}"
date = "{{ .Date }}"
+slug = "{{ replaceRE "(?:\\d+-){3}" "" .Name }}"
tags = []
draft = true
+++