aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-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}}...