Skip to content

Commit

Permalink
chore(blog): Show published_at date instead of created_at
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Jul 16, 2024
1 parent a795eba commit a11e856
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/client/blog/BlogPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function BlogPage({ page }: Props) {
</Typography>
</Grid2>
<Grid2 xs={10} xsOffset={1} textAlign="center">
<DateCreated showLabel createdAt={page.created_at} />
<DateCreated showLabel createdAt={page.published_at as string} />
<ReadingTime showLabel readingTime={page.reading_time} />
</Grid2>
<Grid2 xs={10} xsOffset={1}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/client/blog/BlogPostPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function BlogPostPage({ post, referer }: Props) {
</Typography>
</Grid2>
<Grid2 xs={10} xsOffset={1} textAlign="center">
<DateCreated showLabel createdAt={post.created_at} />
<DateCreated showLabel createdAt={post.published_at as string} />
<ReadingTime showLabel readingTime={post.reading_time} />
</Grid2>
<Grid2 xs={10} xsOffset={1}>
Expand Down

0 comments on commit a11e856

Please sign in to comment.