Change pubDate to added

This commit is contained in:
Cassidy Williams
2022-08-23 17:10:40 -05:00
parent c297402477
commit 5e0466f4b2

View File

@@ -8,14 +8,14 @@ export interface Props {
content: { content: {
title: string; title: string;
description: string; description: string;
pubDate?: string; added?: string;
updatedDate?: string; updatedDate?: string;
heroImage?: string; heroImage?: string;
}; };
} }
const { const {
content: { title, description, pubDate, updatedDate, heroImage }, content: { title, description, added, updatedDate, heroImage },
} = Astro.props as Props; } = Astro.props as Props;
--- ---
@@ -47,7 +47,7 @@ const {
/> />
)} )}
<h1 class="title">{title}</h1> <h1 class="title">{title}</h1>
{pubDate && <time>{pubDate}</time>} {added && <time>{added}</time>}
{updatedDate && <div>Last updated on <time>{updatedDate}</time></div>} {updatedDate && <div>Last updated on <time>{updatedDate}</time></div>}
<hr/> <hr/>
<slot /> <slot />