* 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:
parent
bbd4a31bad
commit
892c743b78
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue