feat(daily-email): show post date
This commit is contained in:
parent
bc02b2b0ee
commit
34ca0a450a
|
@ -29,9 +29,13 @@ export async function getStaticPaths() {
|
|||
}
|
||||
|
||||
const { Content } = await Astro.props.email.render();
|
||||
const { title } = Astro.props.email.data;
|
||||
const { pubDate, title } = Astro.props.email.data;
|
||||
---
|
||||
|
||||
<Layout title={title}>
|
||||
<Content />
|
||||
<time datetime={format(pubDate, 'yyyy-MM-dd')}>
|
||||
{format(pubDate, 'PPP')}
|
||||
</time>
|
||||
|
||||
<Content class="mt-6" />
|
||||
</Layout>
|
||||
|
|
Loading…
Reference in a new issue