From 342c3ceb20b220c7e82da23c13087b882ef13515 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 20 Oct 2021 04:54:52 -0400 Subject: themes/hugo-pt2021/archetypes/articles.md: include date and toc --- themes/hugo-pt2021/archetypes/articles.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'themes/hugo-pt2021') 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}}... -- cgit v1.2.3