--- a/Dockerfile Tue May 04 22:01:16 2021 -0500
+++ b/Dockerfile Tue May 04 22:13:33 2021 -0500
@@ -2,7 +2,7 @@
# setup up our node environment
#####################################################################
-FROM node:10-buster-slim as node-update-date
+FROM node:14-buster-slim as node-update-date COPY package-lock.json package.json ./
@@ -38,7 +38,7 @@
# setup up our node environment
#####################################################################
-FROM node:10-buster-slim as node-build
+FROM node:14-buster-slim as node-build COPY package-lock.json package.json ./
RUN npm ci --production && \
--- a/tools/update-lastmod.js Tue May 04 22:01:16 2021 -0500
+++ b/tools/update-lastmod.js Tue May 04 22:13:33 2021 -0500
@@ -34,7 +34,9 @@
const lastmod = commits[0].date
- const date = commits[commits.length - 1].date
+ // If the md file has a date, use that. If it does not grab the date from + const date = attributes.date ?? commits[commits.length - 1].date const newFrontString = yaml
.dump({ ...attributes, lastmod, date }, yamlDumpSettings)