this repo has no description www.baileykane.co/
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update date formatting

BK610 94b5c1b8 54a06eee

+8 -1
+8 -1
components/BlogPostPreview.tsx
··· 9 9 export default function BlogPostPreview({ 10 10 blogPost, 11 11 }: BlogPostPreviewProps): React.ReactElement { 12 + const publishedDateObj = new Date(blogPost.publishedDate); 13 + 12 14 return ( 13 15 <Link href={blogPost.slug}> 14 16 <div ··· 16 18 > 17 19 <div> 18 20 <p className="text-sm mb-2 text-stone-700 dark:text-stone-100"> 19 - From {blogPost.publishedDate} 21 + Published{" "} 22 + {publishedDateObj.toLocaleDateString("en-US", { 23 + month: "long", 24 + day: "numeric", 25 + year: "numeric", 26 + })} 20 27 </p> 21 28 <h2 className="mb-1 font-bold">{blogPost.title}</h2> 22 29 <p className="text-stone-700 dark:text-stone-100 line-clamp-3">