Page not found

Page Not Found


import {
  equals,
  identity as I,
  ifElse,
  last,
  pipe,
  split
} from 'ramda'

const goto = z => {
  window.location = window.location.host + '/' + z
}

const whatToDo = pipe(
  z => z + '',
  split('/'),
  last,
  ifElse(
    equals('404'),
    goto(''),
    I 
  )
)(window.location)
See this page on Github
Built with 💛 by Open Sorcerers
Created with Gatsby using the 😎 foresight starter