aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/hugo-pt2021/archetypes/posts.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/themes/hugo-pt2021/archetypes/posts.md b/themes/hugo-pt2021/archetypes/posts.md
index 9b527d6..c486240 100644
--- a/themes/hugo-pt2021/archetypes/posts.md
+++ b/themes/hugo-pt2021/archetypes/posts.md
@@ -1,7 +1,8 @@
+{{- $slug := substr .Name 11 -}}
---
-slug: {{.Name}}
-title: "{{ replace .Name "-" " " | title }}"
-date: "{{now}}"
+slug: {{$slug}}
+title: "{{ replace $slug "-" " " | title }}"
+date: "{{now.Format "2006-01-02T15:04:05"}}{{default "Z" .Site.Params.tz}}"
draft: true
---
-Longer description of {{.Name}}
+Contents of {{$slug}}.