Feat: Add frontmatter.lastmod by default

This commit is contained in:
Cristian Ditaputratama 2023-05-26 02:17:39 +07:00
parent 4a57cc5069
commit 8a8c96afa6
Signed by: ditatompel
GPG key ID: 31D3D06D77950979
5 changed files with 11 additions and 0 deletions

View file

@ -1,6 +1,7 @@
--- ---
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }} date: {{ .Date }}
lastmod:
draft: true draft: true
description: description:
noindex: false noindex: false

View file

@ -2,6 +2,7 @@
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
# linkTitle: # linkTitle:
date: {{ .Date }} date: {{ .Date }}
lastmod:
draft: true draft: true
description: description:
noindex: false noindex: false

View file

@ -1,6 +1,7 @@
--- ---
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }} date: {{ .Date }}
lastmod:
draft: true draft: true
description: description:
resources: resources:

View file

@ -2,6 +2,7 @@
title: "{{ replace .Name "-" " " | title }}" title: "{{ replace .Name "-" " " | title }}"
# linkTitle: # linkTitle:
date: {{ .Date }} date: {{ .Date }}
lastmod:
draft: true draft: true
description: description:
noindex: false noindex: false

View file

@ -81,6 +81,13 @@ taxonomies:
build: build:
writeStats: true # required by PurgeCSS. writeStats: true # required by PurgeCSS.
frontmatter:
lastmod:
- lastmod
- :git
- :fileModTime
- :default
markup: markup:
goldmark: goldmark:
renderer: renderer: