Change pubDate to added
This commit is contained in:
@@ -8,14 +8,14 @@ export interface Props {
|
||||
content: {
|
||||
title: string;
|
||||
description: string;
|
||||
pubDate?: string;
|
||||
added?: string;
|
||||
updatedDate?: string;
|
||||
heroImage?: string;
|
||||
};
|
||||
}
|
||||
|
||||
const {
|
||||
content: { title, description, pubDate, updatedDate, heroImage },
|
||||
content: { title, description, added, updatedDate, heroImage },
|
||||
} = Astro.props as Props;
|
||||
---
|
||||
|
||||
@@ -47,7 +47,7 @@ const {
|
||||
/>
|
||||
)}
|
||||
<h1 class="title">{title}</h1>
|
||||
{pubDate && <time>{pubDate}</time>}
|
||||
{added && <time>{added}</time>}
|
||||
{updatedDate && <div>Last updated on <time>{updatedDate}</time></div>}
|
||||
<hr/>
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user