forked from pioneers/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
24 lines (21 loc) · 870 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
---
permalink: /404.html
layout: default-minus-hero
---
<div class="container">
<h1>Page Not Found</h1>
<p>Looks like we can't find that page. If you reached this page by typing in a URL, make sure that you spelled it correctly. If you reached this page by clicking on a link, contact us at {% email [email protected] %} so we can fix the link!</p>
</div>
<script>
// Hacky solution to redirect old URLs. As written, this will only work in the
// production environment; there is no easy way to copy variables like baseurl
// from _config.yml into the Javascript.
(function () {
var path = window.location.pathname.replace(/\//g, "");
if (path == "home") {
window.location.pathname = "/";
} else if (path == "student_app") {
window.location = "https://scholarship.pierobotics.org/student_app/";
}
})();
</script>