Skip to content

Commit 1a87de9

Browse files
fix: added date data to blog cards
Signed-off-by: Shriya-Chauhan <[email protected]>
1 parent e9876f0 commit 1a87de9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/navigation/BlogPostItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import moment from 'moment';
12
import Link from 'next/link';
23
import type { Ref } from 'react';
34
import React, { forwardRef } from 'react';
@@ -128,7 +129,7 @@ const BlogPostItem = ({ post, className = '', id = '' }: BlogPostItemProps, ref:
128129
</span>
129130
</Heading>
130131
<Paragraph typeStyle={ParagraphTypeStyle.sm} className='text-xs text-gray-500 dark:text-gray-400'>
131-
Data
132+
{post.date ? moment(post.date).format('MMMM D, YYYY') : ''}
132133
</Paragraph>
133134
</div>
134135
</div>

0 commit comments

Comments
 (0)