Change pubDate to added
This commit is contained in:
@@ -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 />
|
||||||
|
|||||||
Reference in New Issue
Block a user