-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
27 lines (22 loc) · 680 Bytes
/
404.html
File metadata and controls
27 lines (22 loc) · 680 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
---
layout: default
title: 404 - Page not found
permalink: /404.html
---
<div class="text-center">
<h1>Whoops, this page doesn't exist.</h1>
<h1>Move along. (404 error)</h1>
</div>
<script>
if (location.pathname.indexOf('/tags/') === 0) {
var tag = location.pathname.replace(/\/tags\/(.*?)\/default\.aspx/, '$1');
if (tag) {
location.replace('/tags#' + tag);
}
} else if (location.pathname.indexOf('/archive/') === 0) {
var yearMonth = location.pathname.replace(/\/archive\/(\d{4})\/(\d{2})\.aspx/, '$1-$2');
if (yearMonth) {
location.replace('/archive#' + yearMonth);
}
}
</script>