-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
23 lines (17 loc) · 809 Bytes
/
404.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: page
title: "404: Read Below"
background: '/img/bg-contact.jpg'
permalink: 404.html
---
<p>You have arrived in the land of the mysterious chapatis. The link you clicked was degraded due to the blog moving to github. We are nearly positive that if you click this <span id="newlink"></span>, you will find what you came to seek. If that doesn't work you can <a href="{{ site.baseurl }}/">search here</a> to wend yourself another path.</p>
<script type="text/javascript">
var a = document.createElement('a');
var linkText = document.createTextNode("new link");
a.appendChild(linkText);
var regex = /[a-zA-Z0-9\s_]*\.html/;
var original_url = document.URL;
var new_url = original_url.match(regex);
a.href = "/archives/" + new_url[0];
document.getElementById('newlink').appendChild(a);
</script>