Update some formats of this blog
This commit is contained in:
parent
fc2a5be2e7
commit
034a317648
6 changed files with 37 additions and 11 deletions
|
|
@ -45,10 +45,10 @@ const allPosts = await getCollection("blog");
|
|||
<BlogPost
|
||||
url={`/posts/${post.id}/`}
|
||||
title={post.data.title}
|
||||
datetime={post.data.pubDate.toLocaleDateString("ja-JP", {
|
||||
datetime={post.data.pubDate.toLocaleDateString("en-US", {
|
||||
year: "numeric",
|
||||
month: "2-digit",
|
||||
day: "2-digit",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
})}
|
||||
/>
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue