chore(pages/index.html): add update timestamp to home page
This commit is contained in:
parent
6995306517
commit
3a27b96851
4 changed files with 5 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "3.7.2",
|
"version": "3.7.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "3.7.2",
|
"version": "3.7.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"html-minifier-terser": "7.2.0",
|
"html-minifier-terser": "7.2.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "3.7.2",
|
"version": "3.7.3",
|
||||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{%- elsif pageUpdated -%}
|
{%- elsif pageUpdated -%}
|
||||||
{%- assign updateTime = page.updated | date:"%B %-d, %l:%M %P", "America/Los_Angeles" -%}
|
{%- assign updateTime = page.updated | date:"%B %-d, %l:%M %P", "America/Los_Angeles" -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
<footer{% unless updateTime %} style="margin-top:var(--spacing-3xl)"{% endunless %}>
|
<footer>
|
||||||
{%- if updateTime -%}
|
{%- if updateTime -%}
|
||||||
<p class="updated"><em>This page was last updated on {{ updateTime | strip }}.</em></p>
|
<p class="updated"><em>This page was last updated on {{ updateTime | strip }}.</em></p>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
permalink: /
|
permalink: /
|
||||||
|
updated: "now"
|
||||||
---
|
---
|
||||||
{% render "home/intro.liquid"
|
{% render "home/intro.liquid"
|
||||||
intro:globals.intro,
|
intro:globals.intro,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue