Skip to content

Instantly share code, notes, and snippets.

@yomete
Created July 29, 2019 04:43
Show Gist options
  • Save yomete/b50c7092113d6df7d899e1752be189af to your computer and use it in GitHub Desktop.
Save yomete/b50c7092113d6df7d899e1752be189af to your computer and use it in GitHub Desktop.
import React from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
interface Props {
data: {
site: {
siteMetadata: {
title: string
}
}
}
}
const NotFoundPage = ({ data }: Props) => {
const siteTitle = data.site.siteMetadata.title
return (
<Layout location={window.location} title={siteTitle}>
<SEO title="404: Not Found" />
<h1>Not Found</h1>
<p>You just hit a route that doesn&#39;t exist... the sadness.</p>
</Layout>
)
}
export default NotFoundPage
export const pageQuery = graphql`
query {
site {
siteMetadata {
title
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment