404.html (1488B)
- ---
- permalink: /404.html
- ---
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="description" content="Grim Grains is an illustrated food blog, it features plant-based (vegan) recipes.">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- Redirect -->
- <meta http-equiv = "refresh" content = "10; url=https://grimgrains.com/site/home.html" />
- <link rel="stylesheet" type="text/css" href="https://grimgrains.com/links/main.css"/>
- <link rel='alternate' type='application/rss+xml' title='RSS Feed' href='links/rss.xml' />
- <title>GrimGrains</title>
- </head>
- <body>
- <p>The page you were looking for does not exist, if you think this was a mistake, please report the broken link <a href='https://github.com/hundredrabbits/Grimgrains' target='_blank'>here</a>, or go back to the <a href='/site/home.html'>home</a>.</p>
- <script>
- 'use strict'
- const parts = window.location.pathname.split("/")
- const target = parts.slice(-1)
- const filename = toFilename(target[0])
- const filepath = `https:/grimgrains.com/site/${filename}.html`
- if(UrlExists(filepath)){
- window.location.replace(filepath)
- }
- function UrlExists(url) {
- const http = new XMLHttpRequest()
- http.open('HEAD', url, false)
- http.send()
- return http.status!=404
- }
- function toFilename(str){
- return `${str}`.replace('#','').replace(/[\W_]+/g,"_").toLowerCase().trim()
- }
- </script>
- </body>
- </html>