fleshed out publish date
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
@@ -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>
|
||||
|
@@ -6,6 +6,7 @@ export type Post = {
|
||||
title: string;
|
||||
body: string;
|
||||
created_at: string;
|
||||
publish_date: string;
|
||||
};
|
||||
|
||||
export type Author = {
|
||||
|
Reference in New Issue
Block a user