chore(pages/index.html): add update timestamp to home page

This commit is contained in:
Cory Dransfeldt 2025-05-09 11:16:14 -07:00
parent 6995306517
commit 965c48fc3e
No known key found for this signature in database
5 changed files with 6 additions and 4 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "3.7.2",
"version": "3.7.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "3.7.2",
"version": "3.7.4",
"license": "MIT",
"dependencies": {
"html-minifier-terser": "7.2.0",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "3.7.2",
"version": "3.7.4",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"engines": {

View file

@ -501,5 +501,6 @@ footer {
.updated {
font-size: var(--font-size-sm);
text-align: center;
margin-top: 0;
}
}

View file

@ -4,7 +4,7 @@
{%- elsif pageUpdated -%}
{%- assign updateTime = page.updated | date:"%B %-d, %l:%M %P", "America/Los_Angeles" -%}
{%- endif -%}
<footer{% unless updateTime %} style="margin-top:var(--spacing-3xl)"{% endunless %}>
<footer>
{%- if updateTime -%}
<p class="updated"><em>This page was last updated on {{ updateTime | strip }}.</em></p>
{%- endif -%}

View file

@ -1,5 +1,6 @@
---
permalink: /
updated: "now"
---
{% render "home/intro.liquid"
intro:globals.intro,