Skip to content

Commit

Permalink
Add year to blog post date
Browse files Browse the repository at this point in the history
Signed-off-by: Eduard Itrich <eduard.itrich@porsche.de>
on-behalf-of: @porscheofficial <open_source_office@porsche.de>
  • Loading branch information
itrich committed Nov 3, 2023
1 parent a0e3f68 commit ebe570d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/blog/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const BlogPage: React.FC<PageProps> = ({ params }: PageProps) => {
notFound();
}

const formatDate = format(parseISO(blog.date), "do LLLL");
const formatDate = format(parseISO(blog.date), "do LLLL yyyy");
const hashes = blog.hashTags ? `· #${blog.hashTags.join(" #")}` : "";
const description = `${formatDate} · ${blog.readTime} reading time ${hashes}`;

Expand Down

0 comments on commit ebe570d

Please sign in to comment.