Skip to content

Commit

Permalink
fix(og): fix createdAt
Browse files Browse the repository at this point in the history
  • Loading branch information
noghartt committed Sep 3, 2024
1 parent dd98996 commit c63905f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/blog/[slug]/_post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export const post = (props: CollectionEntry<'blog'>) => {
</div>
<div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}>
<p style={{ display: 'flex', gap: 8 }}>
{props.data.tags.map((tag, i) => (
{(props.data.tags || []).map((tag, i) => (
<span key={i}>#{tag}</span>
))}
</p>
<p>{dayjs(props.data.createdAt).format('YYYY-MM-DD')}</p>
<p>{dayjs(props.data.pubDate).format('YYYY-MM-DD')}</p>
</div>
</div>
</div>
Expand Down

0 comments on commit c63905f

Please sign in to comment.