fleshed out publish date

This commit is contained in:
2025-07-17 21:21:33 -04:00
parent bc8e093651
commit 7f04dabf92
6 changed files with 17 additions and 12 deletions

View File

@@ -15,9 +15,9 @@ export const PostCard = function PostCard({ post }: { post: Post }) {
>
{post.first_name} {post.last_name}
</a>{" "}
at {convertUtc(post.created_at)}
at {convertUtc(post.publish_date)}
</p>
<p class="text-gray-400">{truncateString(post.body, 30)}</p>
<p class="text-gray-400">{truncateString(post.body, 45)}</p>
</a>
</div>
);

View File

@@ -17,7 +17,7 @@ export const PostHeader = function PostHeader({ post }: PostHeaderOpts) {
</p>
<p class="text-md font-medium text-[#E39A9C] sm:text-xl italic">
by {post.first_name} {post.last_name} posted on{" "}
{convertUtc(post.created_at)}
{convertUtc(post.publish_date)}
</p>
</div>
</div>

View File

@@ -6,6 +6,7 @@ export type Post = {
title: string;
body: string;
created_at: string;
publish_date: string;
};
export type Author = {