aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/markdown/base-post.mkd2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/markdown/base-post.mkd b/template/markdown/base-post.mkd
index d19c898..61859a4 100644
--- a/template/markdown/base-post.mkd
+++ b/template/markdown/base-post.mkd
@@ -1,6 +1,6 @@
---
layout: post
-title: {{_expr_:substitute(matchstr(expand("%:p:t:r"), '^[0-9-]\+\zs.*'), '_', ' ', 'g')}}
+title: {{_expr_:substitute(matchstr(expand("%:p:t:r"), '^[0-9-]\+\zs.*'), '[-_]', ' ', 'g')}}
date: {{_expr_:strftime('%Y/%m/%d %H:%M', localtime())}}
---
{{_cursor_}}