diff --git a/archetypes/blog.md b/archetypes/blog.md index 3dc96dc..bc723b7 100644 --- a/archetypes/blog.md +++ b/archetypes/blog.md @@ -1,6 +1,7 @@ --- title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} +lastmod: draft: true description: noindex: false diff --git a/archetypes/docs.md b/archetypes/docs.md index e2713f9..c806ded 100644 --- a/archetypes/docs.md +++ b/archetypes/docs.md @@ -2,6 +2,7 @@ title: "{{ replace .Name "-" " " | title }}" # linkTitle: date: {{ .Date }} +lastmod: draft: true description: noindex: false diff --git a/archetypes/gallery.md b/archetypes/gallery.md index cf32d3f..70a0176 100644 --- a/archetypes/gallery.md +++ b/archetypes/gallery.md @@ -1,6 +1,7 @@ --- title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} +lastmod: draft: true description: resources: diff --git a/archetypes/tutorials.md b/archetypes/tutorials.md index 9dff8b0..e4e6d5b 100644 --- a/archetypes/tutorials.md +++ b/archetypes/tutorials.md @@ -2,6 +2,7 @@ title: "{{ replace .Name "-" " " | title }}" # linkTitle: date: {{ .Date }} +lastmod: draft: true description: noindex: false diff --git a/config/_default/hugo.yaml b/config/_default/hugo.yaml index 3e55ccd..dd4be92 100644 --- a/config/_default/hugo.yaml +++ b/config/_default/hugo.yaml @@ -81,6 +81,13 @@ taxonomies: build: writeStats: true # required by PurgeCSS. +frontmatter: + lastmod: + - lastmod + - :git + - :fileModTime + - :default + markup: goldmark: renderer: