diff options
author | Jose OC <jose.oc@gmail.com> | 2017-07-14 21:51:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-14 21:51:42 +0300 |
commit | 6326c2b7ea23f7d019f7ba89cd45fefb11c4b4b5 (patch) | |
tree | 3d0e5eeacd6f94d793188948135d0736b602d10e /archetypes | |
parent | 6180b1c8bdd9e48b1d264fd0f3407bf18f34b373 (diff) |
New Posts with title and date
When a new post is created the current date is set up in the frontmatter as well as a well formatted title based on the filename.
Diffstat (limited to 'archetypes')
-rw-r--r-- | archetypes/post.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archetypes/post.md b/archetypes/post.md index 11ee897..355c51d 100644 --- a/archetypes/post.md +++ b/archetypes/post.md @@ -1,6 +1,6 @@ --- -title: "New Post" -date: 2015-05-28 +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} categories: - category - subcategory |