fix: timestamp for programmatically updated + now pages
This commit is contained in:
parent
b50a4670d2
commit
16eb58fe0f
4 changed files with 15 additions and 8 deletions
10
package-lock.json
generated
10
package-lock.json
generated
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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 -%}
|
||||
<div class="main-wrapper">
|
||||
<main>{{ content }}</main>
|
||||
{% render "partials/footer.liquid", page:page, nav:nav, updated:page.updated %}
|
||||
{% render "partials/footer.liquid", page:page, nav:nav, updated:updateTime %}
|
||||
</div>
|
|
@ -1,6 +1,6 @@
|
|||
<footer{% unless updated %} style="margin-top:var(--sizing-3xl)"{% endunless %}>
|
||||
{% if updated %}
|
||||
<p class="explainer text-small text-centered"><em>This page was last updated on {{ updated | date: "%B %-d, %-I:%M%p", "America/Los_Angeles" }}.</em></p>
|
||||
<p class="explainer text-small text-centered"><em>This page was last updated on {{ updated | strip }}.</em></p>
|
||||
{% endif %}
|
||||
<nav aria-label="Social icons" class="social flex-centered justify-centered text-centered">
|
||||
{% for link in nav.footer_icons %}
|
||||
|
|
Reference in a new issue