aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-20 04:54:52 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-20 04:54:52 -0400
commit342c3ceb20b220c7e82da23c13087b882ef13515 (patch)
tree7e477bf5e7c51ea8cc69189e8ec58c6e3e6604d1
parent2843241ff10addec337a2163e4b85e12807e6ebe (diff)
downloadpablotron.org-342c3ceb20b220c7e82da23c13087b882ef13515.tar.bz2
pablotron.org-342c3ceb20b220c7e82da23c13087b882ef13515.zip
themes/hugo-pt2021/archetypes/articles.md: include date and toc
-rw-r--r--themes/hugo-pt2021/archetypes/articles.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/hugo-pt2021/archetypes/articles.md b/themes/hugo-pt2021/archetypes/articles.md
index 023684c..a05f0cf 100644
--- a/themes/hugo-pt2021/archetypes/articles.md
+++ b/themes/hugo-pt2021/archetypes/articles.md
@@ -2,10 +2,16 @@
slug: "{{.Name}}"
title: "{{ replace .Name "-" " " | title }}"
+# date (optional for articles)
+date: "{{now.Format "2006-01-02T15:04:05"}}{{default "Z" .Site.Params.tz}}"
+
# draft articles are not visible on live site
draft: true
# show on articles page
show: true
+
+# uncomment to show table of contents
+# toc: true
---
Content of {{.Name}}...