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

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose OC <jose.oc@gmail.com>2017-07-14 21:51:42 +0300
committerGitHub <noreply@github.com>2017-07-14 21:51:42 +0300
commit6326c2b7ea23f7d019f7ba89cd45fefb11c4b4b5 (patch)
tree3d0e5eeacd6f94d793188948135d0736b602d10e /archetypes
parent6180b1c8bdd9e48b1d264fd0f3407bf18f34b373 (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.md4
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