-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404.html
More file actions
39 lines (33 loc) · 951 Bytes
/
404.html
File metadata and controls
39 lines (33 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
layout: page
title: "PAGE NOT FOUND"
permalink: /404.html
---
<div class="text-center">
<p>You've come to a dead end somehow. Please try navigating using the menu</p>
<ul class="post-list">
{% for link in site.links %}
<li>
<a href="{{ site.baseurl }}{{ link.url }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
</div>
<script>
// Add Google Analytics event.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event' : 'page not found'
});
// on 2016-02-01 GitHub Pages upgraded to Jekyll3, which broke all blog posts with trailing slashes.
// Try redirecting to no-slash version.
var url = location.href;
if (url.substr(url.length - 1) === '/') {
window.location = url.substr(0, url.length - 1);
}
// Try the lower-case version of the URL.
var lowerCaseUrl = url.toLowerCase();
if (url != lowerCaseUrl) {
window.location = lowerCaseUrl;
}
</script>