summaryrefslogtreecommitdiff
path: root/website/src/layouts
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-04-13 08:37:56 +0100
committerJoe Carstairs <me@joeac.net>2026-04-13 08:37:56 +0100
commit1a64bce2fbf4f8c430672b63c62c6b99c0ac496a (patch)
tree57b53229fea8ac330fe928d2fae6e1ce69a20df6 /website/src/layouts
parentcf6dbc2aa132920b09bfb3693ac4fe11092bc2d6 (diff)
website can get pubDate from filename instead of frontmatter
Diffstat (limited to 'website/src/layouts')
-rw-r--r--website/src/layouts/BlogPost.astro7
1 files changed, 6 insertions, 1 deletions
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;