Use mdx 404 page

Luke Karrys committed Oct 17, 2023 at 15:01 UTC b6adcc6d6eda076b93c9af21d60dc2229a9e6267
3 files changed +7 -9
content/404.mdx new
+6
@@ -0,0 +1,6 @@
1 +---
2 +title: 404
3 +edit_on_github: false
4 +---
5 +
6 +<Index depth={2} hideVariants />
src/mdx/index.js
+1 -1
@@ -49,13 +49,13 @@ const Headings = {
49 <StyledHeading id={id} {...props}>
50 <Link
51 href={`#${id}`}
52 + aria-label={`${text} permalink`}
53 sx={{
54 color: 'inherit',
55 '&:hover, &:focus': {
56 textDecoration: 'none',
57 },
58 }}
58 - aria-label={`${text} permalink`}
59 >
60 {children}
61 <Octicon
src/pages/404.js deleted
-8
@@ -1,8 +0,0 @@
1 -import React from 'react'
2 -import withLayout from '../layout'
3 -
4 -const Page404 = () => {
5 - return <h1>404 page</h1>
6 -}
7 -
8 -export default withLayout(Page404)