-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.html
48 lines (43 loc) · 1.43 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
permalink: /404.html
layout: default
no-nav: true
title: 404 Not Found
---
<main>
<h2>Oops! It looks like you might be lost (404 Not Found).</h2>
<br />
<span>Here are some pages that you might be looking for:</span>
<ul>
{% for item in site.data.navigation %}
{% assign stuff = page.url | downcase | split: '/' %}
{% assign pagepath = stuff[1] | prepend: '/' | split: '.' %}
<li>
{% if item.external %}
<a href="{{ item.url }}" class="link" target="_blank">
{{ item.name }}
<i class="fas fa-external-link-alt"></i>
</a>
{% else %}
<a href="{{ item.url }}" class="link">
{{ item.name }}
</a>
{% endif %}
<ul>
{% for subitem in item.subitems %}
{% assign withHTML = subitem.url | append: '.html' %}
<li>
<a href="{{ subitem.url }}" class="link">{{ subitem.name }}</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
<script>
var loc = window.location;
if (loc.pathname.replace('/', '') == 'brb.html') {
loc.replace(loc.protocol + '//' + loc.hostname + (loc.port ? ':' + loc.port : '') + '/brb');
}
</script>
</main>