Use long month formatting for last edit date [Fixes #86] (#121)

* use long month formatting for last edit date

* last -> Last

* Update src/pages/[...slug].tsx

Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
This commit is contained in:
Paul Wackerow 2022-12-06 14:43:12 +01:00 committed by GitHub
parent bbd4a31bad
commit 892c743b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ export const getStaticProps: GetStaticProps = async context => {
content,
navLinks,
lastModified: getParsedDate(lastModified.mtime, {
month: 'numeric',
month: 'long',
day: 'numeric',
year: 'numeric'
})
@ -111,7 +111,7 @@ const DocPage: NextPage<Props> = ({ frontmatter, content, navLinks, lastModified
{frontmatter.title}
</Heading>
<Text as='span' mt='0 !important'>
last edited {lastModified}
Last edited on {lastModified}
</Text>
</Stack>