diff --git a/package-lock.json b/package-lock.json index 19e98d8c..8af6ae1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "20.7.0", + "version": "20.7.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "20.7.0", + "version": "20.7.1", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", @@ -1176,9 +1176,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.4.827", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.827.tgz", - "integrity": "sha512-VY+J0e4SFcNfQy19MEoMdaIcZLmDCprqvBtkii1WTCTQHpRvf5N8+3kTYCgL/PcntvwQvmMJWTuDPsq+IlhWKQ==", + "version": "1.4.828", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.828.tgz", + "integrity": "sha512-QOIJiWpQJDHAVO4P58pwb133Cwee0nbvy/MV1CwzZVGpkH1RX33N3vsaWRCpR6bF63AAq366neZrRTu7Qlsbbw==", "dev": true, "license": "ISC" }, diff --git a/package.json b/package.json index 96f53fe1..f5604b08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "20.7.0", + "version": "20.7.1", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_includes/main.liquid b/src/_includes/main.liquid index f704f2e2..cd4b4e55 100644 --- a/src/_includes/main.liquid +++ b/src/_includes/main.liquid @@ -1,7 +1,14 @@ --- layout: base --- +{%- capture updateTime -%} + {% if updated == "now" %} + {{ 'now' | date: "%B %-d, %l:%M %P", "America/Los_Angeles" }} + {% elsif page.updated %} + {{ page.updated | date: "%B %-d, %l:%M %P", "America/Los_Angeles" }} + {% endif %} +{%- endcapture -%}
{{ content }}
- {% render "partials/footer.liquid", page:page, nav:nav, updated:page.updated %} + {% render "partials/footer.liquid", page:page, nav:nav, updated:updateTime %}
\ No newline at end of file diff --git a/src/_includes/partials/footer.liquid b/src/_includes/partials/footer.liquid index 30bfa663..bdd0834e 100644 --- a/src/_includes/partials/footer.liquid +++ b/src/_includes/partials/footer.liquid @@ -1,6 +1,6 @@ {% if updated %} -

This page was last updated on {{ updated | date: "%B %-d, %-I:%M%p", "America/Los_Angeles" }}.

+

This page was last updated on {{ updated | strip }}.

{% endif %}