--- a/tools/update-lastmod.js Thu Jun 06 15:58:59 2019 +0100
+++ b/tools/update-lastmod.js Thu Jun 06 16:10:56 2019 +0100
@@ -21,7 +21,7 @@
const hgLogArgs = ['log', '--follow', '--pager', 'never', '--color', 'never']
-const yamlDumpSettings = { indent: 4 }
+const yamlDumpSettings = { indent: 2 } /*****************************************************************************
@@ -34,8 +34,9 @@
const lastmod = commits[0].date
+ const date = commits[commits.length - 1].date const newFrontString = yaml
- .dump({ ...attributes, lastmod }, yamlDumpSettings)
+ .dump({ ...attributes, lastmod, date }, yamlDumpSettings) const output = `---\n${newFrontString}\n---\n\n${body}`