Update date formatting in blog view
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user