From 1a64bce2fbf4f8c430672b63c62c6b99c0ac496a Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 13 Apr 2026 08:37:56 +0100 Subject: website can get pubDate from filename instead of frontmatter --- website/src/layouts/BlogPost.astro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'website/src/layouts') diff --git a/website/src/layouts/BlogPost.astro b/website/src/layouts/BlogPost.astro index 3f7a999..267ea6c 100644 --- a/website/src/layouts/BlogPost.astro +++ b/website/src/layouts/BlogPost.astro @@ -4,7 +4,12 @@ import BaseHead from '../components/BaseHead.astro'; import FormattedDate from '../components/FormattedDate.astro'; import Navbar from '../components/Navbar.astro'; -type Props = CollectionEntry<'blog'>['data']; +type Props = { + title: string; + description?: string; + updatedDate?: Date; + pubDate: Date; +} const { title, description, pubDate, updatedDate } = Astro.props; -- cgit v1.2.3