Skip to content

Commit

Permalink
Fix broken 404 page (#20)
Browse files Browse the repository at this point in the history
* Fixing 404 page

* Using better Gatsby solution
  • Loading branch information
Dylan Irlbeck committed May 12, 2020
1 parent 8ed3dca commit 8409846
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 11 additions & 0 deletions gatsby-node.js
Expand Up @@ -5,3 +5,14 @@
*/

// You can delete this file if you're not using it

const path = require('path')

exports.createPages = async ({ actions }) => {
const { createPage } = actions
const page404 = path.resolve('src/pages/page_404.bs.js')
createPage({
path: '404',
component: page404,
})
}
7 changes: 3 additions & 4 deletions src/pages/404_page.re → src/pages/page_404.re
Expand Up @@ -3,10 +3,9 @@ let make = () => {
<Layout>
<h1> {React.string("NOT FOUND")} </h1>
<p>
{React.string(
"You just hit a route that doesn&#39;t exist... the
sadness.",
)}
{React.string("You just hit a route that doesn't exist... the sadness.")}
</p>
</Layout>;
};

let default = make;

0 comments on commit 8409846

Please sign in to comment.