website can get pubDate from filename instead of frontmatter

This commit is contained in:
2026-04-13 08:37:56 +01:00
parent cf6dbc2aa1
commit 1a64bce2fb
4 changed files with 30 additions and 9 deletions
+6 -1
View File
@@ -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;