Skip to content

Commit

Permalink
feat: use full date on blog article
Browse files Browse the repository at this point in the history
  • Loading branch information
lukadev-0 committed Jan 3, 2024
1 parent 75c7655 commit 4a9bd33
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ const { Content } = await post.render();
class="text-neutral-400 font-medium"
datetime={post.data.date.toISOString()}
>
{post.data.date.toDateString()}
{
post.data.date.toLocaleDateString("en-US", {
weekday: "long",
month: "long",
day: "numeric",
year: "numeric",
})
}
</time>
</div>

Expand Down

0 comments on commit 4a9bd33

Please sign in to comment.