website can get pubDate from filename instead of frontmatter
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user