-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cms/posts/accessibility-post
- Loading branch information
Showing
10 changed files
with
105 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { parseISO, format } from 'date-fns'; | ||
import { format, parseJSON } from 'date-fns'; | ||
|
||
interface DateProps { | ||
dateString: string; | ||
} | ||
|
||
export default function DateComponent({ dateString }: DateProps) { | ||
const date = parseISO(dateString); | ||
|
||
return <time dateTime={dateString}>{format(date, 'LLLL d, yyyy')}</time>; | ||
const date = parseJSON(dateString); | ||
const formattedDateString = format(date, 'LLLL d, yyyy'); | ||
return <time dateTime={dateString}>{formattedDateString}</time>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
export const postData = { | ||
content: | ||
'The other day I was cleaning out my inbox when I came across a message from [Code Academy](https://www.codecademy.com/). I quickly delete...', | ||
|
||
date: '"2023-11-20T00:00:00.000Z"', | ||
description: 'A story about my journey to becoming a software engineer.', | ||
featuredimage: '/img/5ff6e03f-0ffe-4606-855e-5dfee4556f44.jpeg', | ||
id: 'how-i-ended-up-a-software-engineer', | ||
tags: ['My edits'], | ||
title: 'How I Ended Up A Software Engineer', | ||
}; | ||
|
||
export const postDataList = [ | ||
{ | ||
content: | ||
'The other day I was cleaning out my inbox when I came across a message from [Code Academy](https://www.codecademy.com/). I quickly delete…', | ||
|
||
date: '"2023-11-20T00:00:00.000Z"', | ||
description: 'A story about my journey to becoming a software engineer.', | ||
featuredimage: '/img/5ff6e03f-0ffe-4606-855e-5dfee4556f44.jpeg', | ||
id: 'how-i-ended-up-a-software-engineer', | ||
tags: ['My edits'], | ||
title: 'How I Ended Up A Software Engineer', | ||
}, | ||
{ | ||
content: | ||
'The other day I was cleaning out my inbox when I came across a message from [Code Academy](https://www.codecademy.com/). I quickly delete…', | ||
|
||
date: '"2023-11-20T00:00:00.000Z"', | ||
description: 'A story about my journey to becoming a software engineer.', | ||
featuredimage: '/img/5ff6e03f-0ffe-4606-855e-5dfee4556f44.jpeg', | ||
id: 'how-i-ended-up-a-software-engineer2', | ||
tags: ['My edits'], | ||
title: 'How I Ended Up A Software Engineer', | ||
}, | ||
{ | ||
content: | ||
'The other day I was cleaning out my inbox when I came across a message from [Code Academy](https://www.codecademy.com/). I quickly delete…', | ||
|
||
date: '"2023-11-20T00:00:00.000Z"', | ||
description: 'A story about my journey to becoming a software engineer.', | ||
featuredimage: '/img/5ff6e03f-0ffe-4606-855e-5dfee4556f44.jpeg', | ||
id: 'how-i-ended-up-a-software-engineer3', | ||
tags: ['My edits'], | ||
title: 'How I Ended Up A Software Engineer', | ||
}, | ||
{ | ||
content: | ||
'The other day I was cleaning out my inbox when I came across a message from [Code Academy](https://www.codecademy.com/). I quickly delete…', | ||
|
||
date: '"2023-11-20T00:00:00.000Z"', | ||
description: 'A story about my journey to becoming a software engineer.', | ||
featuredimage: '/img/5ff6e03f-0ffe-4606-855e-5dfee4556f44.jpeg', | ||
id: 'how-i-ended-up-a-software-engineer4', | ||
tags: ['My edits'], | ||
title: 'How I Ended Up A Software Engineer', | ||
}, | ||
{ | ||
content: | ||
'The other day I was cleaning out my inbox when I came across a message from [Code Academy](https://www.codecademy.com/). I quickly delete…', | ||
|
||
date: '"2023-11-20T00:00:00.000Z"', | ||
description: 'A story about my journey to becoming a software engineer.', | ||
featuredimage: '/img/5ff6e03f-0ffe-4606-855e-5dfee4556f44.jpeg', | ||
id: 'how-i-ended-up-a-software-engineer5', | ||
tags: ['My edits'], | ||
title: 'How I Ended Up A Software Engineer', | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters