Repository navigation
Expand file tree
/
Copy path404.html
More file actions
65 lines (58 loc) · 2.43 KB
/
Copy path404.html
File metadata and controls
65 lines (58 loc) · 2.43 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
layout: page
permalink: /404.html
title: Page not found
description: "That page does not exist on the |QuantumFIT⟩ website."
comments: false
share: false
noindex: true
sitemap: false
---
{% comment %}
GitHub Pages serves /404.html for any path it cannot match, so this one page
answers every bad URL on the site. Two things it therefore must not do:
- use a relative asset path. The page can be served from any depth, and
_includes/head.html builds every URL from site.url, so this is already
true -- but it breaks the moment something here hardcodes a relative one.
- claim to be a real page. `noindex` (handled in head.html) and
`sitemap: false` (read by jekyll-sitemap) keep it out of search results.
The links come from _data/navigation.yml rather than being spelled out, so a
future page added to the menu shows up here too.
{% endcomment %}
<p>
There is no page at <code class="missing-path">that address</code>. The link
that brought you here may be out of date, or the page may have been renamed.
</p>
<p>These are all the pages on this site:</p>
<ul>
{% for item in site.data.navigation %}
<li><a href="{{ site.url }}{{ item.url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
<script>
// q-vis was renamed quvis, and its pages moved from /q-vis/ to /quvis/. Links to the
// old address are out in papers, slides and mail -- every "copy link" ever made
// points there, archived versions under /q-vis/v/<tag>/ included -- and once the
// project stopped serving that path they all land here. Send them on, keeping the
// rest of the path, the query and the fragment, which is where a link keeps its
// circuit. replace() so the dead address does not sit in the history.
(function () {
var m = /^\/q-vis(\/.*)?$/.exec(window.location.pathname);
if (m) {
window.location.replace('/quvis' + (m[1] || '/') + window.location.search + window.location.hash);
}
})();
</script>
<script>
// The address bar still holds the path the reader actually asked for --
// GitHub Pages serves this page without redirecting -- but Jekyll builds
// this file once, at deploy time, and cannot know what that path will be.
// So the placeholder above is filled in here, and stays a sensible sentence
// if scripting is off.
(function () {
var el = document.querySelector('.missing-path');
if (el && window.location.pathname) {
el.textContent = window.location.pathname;
}
})();
</script>