Update date formatting in blog view

This commit is contained in:
Cassidy Williams
2023-10-20 22:44:00 -05:00
parent ce21b54c82
commit cd1dfa72ff

View File

@@ -13,6 +13,15 @@ export async function getStaticPaths() {
const { post } = Astro.props; const { post } = Astro.props;
post.frontmatter.added = new Date(post.frontmatter.added).toLocaleDateString(
"en-us",
{
year: "numeric",
month: "short",
day: "numeric",
}
);
const { const {
Content, Content,
frontmatter: { title, added, updated, tags, excerpt }, frontmatter: { title, added, updated, tags, excerpt },