Skip to content

Commit 0d7794c

Browse files
committed
feat: some more basic enhancements on seo
1 parent 4108ec7 commit 0d7794c

File tree

6 files changed

+326
-15
lines changed

6 files changed

+326
-15
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['next/core-web-vitals', 'plugin:storybook/recommended'],
2+
extends: ['next/core-web-vitals'],
33
}

components/Hero.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
} from '@chakra-ui/react'
1212
import { ArrowForwardIcon } from '@chakra-ui/icons'
1313
import Image from 'next/image'
14+
import NextLink from 'next/link'
1415

1516
const Hero = () => {
1617
return (
@@ -45,6 +46,7 @@ const Hero = () => {
4546
<Link
4647
href={'/getting-started'}
4748
alignSelf={{ base: 'center', md: 'flex-start' }}
49+
as={NextLink}
4850
>
4951
<Button
5052
colorScheme="pink"

components/mdx/ContributorFooter.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export function ContributorFooter({
2626
{authors.length > 1 ? 'Authors' : 'Author'}
2727
</Text>
2828
<VStack spacing={4} alignItems="left">
29-
{authors.map((contrib) => {
30-
return <Contributor handle={contrib} avatarSize="2xl" />
29+
{authors.map((contrib, idx) => {
30+
return <Contributor key={idx} handle={contrib} avatarSize="2xl" />
3131
})}
3232
</VStack>
3333
</Box>
@@ -39,8 +39,8 @@ export function ContributorFooter({
3939
{reviewers.length > 1 ? 'Reviewers' : 'Reviewer'}
4040
</Text>
4141
<VStack spacing={4} alignItems="left">
42-
{reviewers.map((contrib) => {
43-
return <Contributor handle={contrib} avatarSize="lg" />
42+
{reviewers.map((contrib, idx) => {
43+
return <Contributor key={idx} handle={contrib} avatarSize="lg" />
4444
})}
4545
</VStack>
4646
</Box>
@@ -56,8 +56,10 @@ export function ContributorFooter({
5656
: 'Additional Contributor'}
5757
</Text>
5858
<VStack spacing={4} alignItems="left">
59-
{contributors.map((contrib) => {
60-
return <Contributor handle={contrib} avatarSize="lg" />
59+
{contributors.map((contrib, idx) => {
60+
return (
61+
<Contributor key={idx} handle={contrib} avatarSize="lg" />
62+
)
6163
})}
6264
</VStack>
6365
</Box>

next.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ export default withMDX({
1717
reactStrictMode: true,
1818
// Append the default value with md extensions
1919
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
20+
i18n: {
21+
locales: ['en'],
22+
defaultLocale: 'en',
23+
},
2024
})

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"next-seo": "^5.15.0",
2626
"react": "18.2.0",
2727
"react-dom": "18.2.0",
28-
"react-icons": "^4.7.1"
28+
"react-icons": "^4.7.1",
29+
"sharp": "^0.32.5"
2930
},
3031
"devDependencies": {
3132
"@babel/core": "^7.21.0",

0 commit comments

Comments
 (0)