From c156662f1a44236e1ff91dabefd48fd9eed2dc15 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Fri, 3 Jan 2025 09:07:52 +0100 Subject: [PATCH] feat: add updated block to page template --- src/layouts/PageLayout.astro | 13 +++++++++++++ src/pages/colophon.mdx | 1 + src/pages/now.mdx | 3 ++- src/pages/tools.mdx | 3 ++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro index 24b8192..62ffe81 100644 --- a/src/layouts/PageLayout.astro +++ b/src/layouts/PageLayout.astro @@ -1,5 +1,8 @@ --- // Cspell:words astro frontmatter +import { dateToFormat, dateToISO } from '../utils'; +import { animation, animationDelay } from '../data/site'; + import Pullquote from '../components/Pullquote.astro'; import Image from '../components/Image.astro'; import PageTitle from '../components/PageTitle.astro'; @@ -39,5 +42,15 @@ const gridVariant = frontmatter.grid || grid; ) } + { + frontmatter.updated && ( +
+ Last Updated: + +
+ ) + } diff --git a/src/pages/colophon.mdx b/src/pages/colophon.mdx index e940f3f..a8a158b 100644 --- a/src/pages/colophon.mdx +++ b/src/pages/colophon.mdx @@ -1,6 +1,7 @@ --- layout: ../layouts/PageLayout.astro title: Colophon +updated: 2025-01-03 description: The design and technology behind this website explained. intro: In publishing, a colophon is a brief statement containing information about the publication. backLink: / diff --git a/src/pages/now.mdx b/src/pages/now.mdx index 68018fd..db895c1 100644 --- a/src/pages/now.mdx +++ b/src/pages/now.mdx @@ -1,6 +1,7 @@ --- layout: ../layouts/PageLayout.astro title: Now +updated: 2025-01-03 description: This is my Now page, listing the things I currently do. intro: This is my Now page, a website with the content of what I am focused on at this point in my life. backLink: / @@ -12,7 +13,7 @@ export const components = mapping;
-This is my [Now](https://nownownow.com/) page, an idea by [Derek Silvers](https://sive.rs/) for a website with the focus of what this person is focused on at this point in their life. +The concept of a [Now](https://nownownow.com/) page is an idea by [Derek Silvers](https://sive.rs/).
diff --git a/src/pages/tools.mdx b/src/pages/tools.mdx index 7b521f2..4a3256b 100644 --- a/src/pages/tools.mdx +++ b/src/pages/tools.mdx @@ -1,8 +1,9 @@ --- layout: ../layouts/PageLayout.astro title: Tools +updated: 2022-01-03 description: I enjoy learning how other people work, what hardware, software, tools, and gadgets they use. On this page, I present my tools. -intro: I enjoy learning how other people work, what hardware, software, tools, and gadgets they use. On this page, I present my tools. +intro: I enjoy learning how other people work, what hardware, software, tools, and gadgets they use. Here, I present my tools. cover: /assets/images/cover/home-office.webp backLink: / ---