aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-15 02:25:54 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-15 02:25:54 -0400
commitc6a8f3e613d20323e845b40dd87648eb3b79421a (patch)
tree1117c3e1044abb18252335b972343f4c8cc7f4a3 /themes
parent67e94d999a9432e404dd773b9a6a8ef3c4b73493 (diff)
downloadpablotron.org-c6a8f3e613d20323e845b40dd87648eb3b79421a.tar.bz2
pablotron.org-c6a8f3e613d20323e845b40dd87648eb3b79421a.zip
fix post archetype
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}}.