logo

Grimgrains

[mirror] Plant-based cooking website <https://grimgrains.com/>

404.html (1488B)


  1. ---
  2. permalink: /404.html
  3. ---
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="utf-8">
  8. <meta name="description" content="Grim Grains is an illustrated food blog, it features plant-based (vegan) recipes.">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <!-- Redirect -->
  11. <meta http-equiv = "refresh" content = "10; url=https://grimgrains.com/site/home.html" />
  12. <link rel="stylesheet" type="text/css" href="https://grimgrains.com/links/main.css"/>
  13. <link rel='alternate' type='application/rss+xml' title='RSS Feed' href='links/rss.xml' />
  14. <title>GrimGrains</title>
  15. </head>
  16. <body>
  17. <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>
  18. <script>
  19. 'use strict'
  20. const parts = window.location.pathname.split("/")
  21. const target = parts.slice(-1)
  22. const filename = toFilename(target[0])
  23. const filepath = `https:/grimgrains.com/site/${filename}.html`
  24. if(UrlExists(filepath)){
  25. window.location.replace(filepath)
  26. }
  27. function UrlExists(url) {
  28. const http = new XMLHttpRequest()
  29. http.open('HEAD', url, false)
  30. http.send()
  31. return http.status!=404
  32. }
  33. function toFilename(str){
  34. return `${str}`.replace('#','').replace(/[\W_]+/g,"_").toLowerCase().trim()
  35. }
  36. </script>
  37. </body>
  38. </html>