feat(daily-email): show post date

This commit is contained in:
Oliver Davies 2023-04-18 08:00:00 +01:00
parent bc02b2b0ee
commit 34ca0a450a

View file

@ -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>