diff --git a/src/components/BlogRow.tsx b/src/components/BlogRow.tsx index ec8aaa9..31468c6 100644 --- a/src/components/BlogRow.tsx +++ b/src/components/BlogRow.tsx @@ -23,9 +23,15 @@ export default function BlogRow() { if (post) { return (
- -

{post?.title}

-

{post?.description}

+
+

{post?.title}

+

{post?.description}

+

+ Posted {new Date(post.createdAt).toLocaleDateString()} +

); diff --git a/src/utils/types.ts b/src/utils/types.ts index 1cc8aeb..6daac21 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -98,6 +98,7 @@ interface BlogPost { title: string; description: string; slug: string; + createdAt: string; } export type {