1
0
Fork 0

add the 404 page and route to it

this implies that the arcology is always selfhosting, note sure that's
a perfect idea, but here we go...
nix-docker-checkpoint
Ryan Rix 2020-11-14 16:46:39 -08:00
parent 9409bbd043
commit 115e0ebd16
2 changed files with 9 additions and 1 deletions

8
404.org Normal file
View File

@ -0,0 +1,8 @@
#+TITLE: The Page You Requested is Not Available
#+ARCOLOGY_KEY: arcology/404
The link you clicked referenced a page which is not exported to my public web-site. If you are interested in its content or think it should be published, please send an email to [[site@whatthefuck.computer]], please *include the page you just came from*.
Please understand that much of this [[file:../knowledge_base.org][Knowledge Base]] system, including published pages, is *under-developed thinking* and pages which do not meet a certain quality threshold, or are little more than stubs to wikipedia will probably not be included simply to fight public information atrophy.
For more information, see [[file:README.org][the Arcology Project README]].

View File

@ -76,7 +76,7 @@ defp normalize_url(_match, page) do
cond do
key == nil ->
Logger.warn("could not load key for #{page}")
~s(<a href="/index.html" class="dead-link">)
~s(<a href="/arcology/404.html" class="dead-link">)
true ->
~s(<a href="/#{key}.html">)