Update date formatting in blog view

This commit is contained in:
Cassidy Williams committed 2023-10-20 22:44:00 -05:00
1 parent ce21b54c82
commit cd1dfa72ff
1 file changed
+9
+9
View File
@@ -13,6 +13,15 @@ export async function getStaticPaths() {
const { post } = Astro.props;
post.frontmatter.added = new Date(post.frontmatter.added).toLocaleDateString(
"en-us",
{
year: "numeric",
month: "short",
day: "numeric",
}
);
const {
Content,
frontmatter: { title, added, updated, tags, excerpt },