forked from CompEvol/beast2-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
45 lines (37 loc) · 1.16 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
---
layout: site
title: Error 404 -- Page not found
permalink: /404.html
---
<p>It looks like nothing was found at this location. Maybe try a search?</p>
<p>
<input id="queryS" type="search" class="search-field" placeholder="Search …" value="" name="s" />
</p>
<script>
var inputS = document.getElementById("queryS");
inputS.addEventListener("keyup", function(event) {
event.preventDefault();
if (event.keyCode == 13) {
// both duckduckgo and startpage work fine
window.location = "https://www.startpage.com/do/search?query=site:beast2.org+" + inputS.value;
//window.location = "https://www.duckduckgo.com/?q=site:beast2.org+" + input.value;
// google requires the user to hit enter again when redirected to google.com
//window.location = "https://www.google.com/?q=site:beast2.org+" + input.value;
}
});
</script>
<p>Or, perhaps you are looking for one of these pages:</p>
<ul>
{% for page in site.pages %}
<li>
<a href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>