Website: 404 page

Closes #301.
This commit is contained in:
Thaddee Tyl 2014-11-08 11:54:04 +01:00
parent 4140d6a77a
commit 56ffcfff24
2 changed files with 18 additions and 0 deletions

14
404.html Normal file
View File

@ -0,0 +1,14 @@
<!doctype html><meta charset=utf-8><title>These aren't the pages you're looking
for</title>
<h1> I have nothing to offer for this request </h1>
<p> … but blood, toil, tears and sweat.
</p>
<p> Fortunately, <a href=/>the main page can offer rainbows instead</a>!
</p>
<small>
(You probably landed on this page because a link was broken, because someone
mistyped its URL, or because of an irrelevant mistake. Don't worry, though:
there is all of the rest of the Web to explore!)
</small>

View File

@ -262,6 +262,10 @@ function cache(f) {
};
}
camp.notfound(/.*/, function(query, match, end, request) {
end(null, {template: '404.html'});
});
// Vendors.