Commits

Anonymous committed a8c43f3

Made the 404 page less like the site's look and feel.

This way people know it's a 404.

Comments (0)

Files changed (7)

 	cp -f $< $@
 
 # COMMON_CSS_TARGET_DEPS = lib/common-style.css.ttml lib/newsitem.css.ttml lib/smoked-wp-theme.css.ttml lib/lang_switch.css.ttml lib/fortunes.css.ttml lib/fortunes_show.css.ttml lib/screenplay-xml/css/screenplay.css.ttml
-COMMON_CSS_TARGET_DEPS = lib/sass/common-style.sass lib/sass/newsitem.sass lib/sass/smoked-wp-theme.sass lib/sass/lang_switch.sass lib/sass/fortunes.sass lib/sass/fortunes_show.sass lib/sass/screenplay.sass
+COMMON_CSS_TARGET_DEPS = lib/sass/common-style.sass lib/sass/newsitem.sass lib/sass/smoked-wp-theme.sass lib/sass/lang_switch.sass lib/sass/fortunes.sass lib/sass/fortunes_show.sass lib/sass/screenplay.sass lib/sass/footer.sass
 
 MOJOLICIOUS_LECTURE_SLIDE1 = $(T2_DEST)/lecture/Perl/Lightning/Mojolicious/mojolicious-slides.html
 
 lib/presentations/spork/Vim/beginners/Spork.slides: lib/presentations/spork/Vim/beginners/Spork.slides.source
 	cat $< | perl -pe 's!^\+!!' > $@
 
-GEN_STYLE_CSS_FILES = style.css style-2008.css fortunes.css fortunes_show.css
+GEN_STYLE_CSS_FILES = style.css style-2008.css fortunes.css fortunes_show.css style-404.css
 
 T2_CSS_TARGETS = $(patsubst %,$(T2_DEST)/%,$(GEN_STYLE_CSS_FILES))
 VIPE_CSS_TARGETS = $(patsubst %,$(VIPE_DEST)/%,$(GEN_STYLE_CSS_FILES))

common/404.html.wml

-# This makes sure all the URLs point at the / of the site because the 404
-# page may resolve to many pages.
-$(ROOT=)
-#include '../template.wml'
+#include "footer.wml"
 
-<latemp_subject "404 Not Found" />
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE
+    html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
+<head>
+<title>404 Not Found</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="author" content="Shlomi Fish" />
+<meta name="description" content="404 Page for Shlomi Fish’s Homepage" />
+<link rel="stylesheet" type="text/css" href="/style-404.css" />
+</head>
+<body>
+
+<h1>404 Not Found</h1>
 
 <p>
-We could not find this resource on this site. If you've reached this page
-from a link, please <a href="$(ROOT)/me/contact-me/">report the linking
+<a href="/" title="Shlomi Fish’s Homepage"><img 
+    src="/images/evilphish.png"
+    alt="EvilPHish from UserFriendly.org by Illiad" /></a>
+</p>
+<p>
+We could not find this resource on this site. If you’ve reached this page
+from a link, please <a href="/me/contact-me/">report the linking
 page and its link to the webmaster</a> so he can see about restoring the
 missing page or alternatively fixing the link.
 </p>
 
 <li>
 <p>
-<a href="$(ROOT)/humour/"><b>My Humorous Creations</b></a>
+<a href="/humour/"><b>My Humorous Creations</b></a>
 </p>
 </li>
 <li>
 <p>
-<a href="$(ROOT)/philosophy/"><b>My Essays</b></a>
+<a href="/philosophy/"><b>My Essays</b></a>
 </p>
 </li>
 <li>
 <p>
-<a href="$(ROOT)/open-source/"><b>Open Source Software Resources</b></a>
+<a href="/open-source/"><b>Open Source Software Resources</b></a>
 </p>
 </li>
 
 </ul>
 
+<hr />
+
+<div id="footer">
+<webmaster_footer />
+</div>
+
+</body>
+</html>
+#include "utils.wml"
+
+<define-tag webmaster_footer>
+
+<ul class="bt_nav">
+<li>
+<a href="$(ROOT)/">Home</a>
+</li>
+<li>
+<a href="$(ROOT)/me/">About</a>
+</li>
+<li>
+<a href="$(ROOT)/me/contact-me/">Contact Us</a>
+</li>
+<li>
+<a href="$(ROOT)/meta/privacy-policy/">Privacy Policy</a>
+</li>
+<li>
+<a href="$(ROOT)/meta/anti-spam-policy/">Anti-Spam Policy</a>
+</li>
+<li>
+<a href="$(ROOT)/meta/FAQ/" title="Frequently asked questions list">FAQ</a>
+</li>
+<li>
+<a href="$(ROOT)/me/blogs/">RSS/Atom Feeds</a>
+</li>
+</ul>
+
+<p>
+Written, designed and maintained by Shlomi Fish, 
+<mailto_link_to_self email="<main_email />" />
+</p>
+
+</define-tag>

lib/rest-of-template.wml

 </div>
 </latemp_affiliations_buttons>
 
-
+#include "footer.wml"
 
 <latemp_webmaster>
 
-<ul class="bt_nav">
-<li>
-<a href="$(ROOT)/">Home</a>
-</li>
-<li>
-<a href="$(ROOT)/me/">About</a>
-</li>
-<li>
-<a href="$(ROOT)/me/contact-me/">Contact Us</a>
-</li>
-<li>
-<a href="$(ROOT)/meta/privacy-policy/">Privacy Policy</a>
-</li>
-<li>
-<a href="$(ROOT)/meta/anti-spam-policy/">Anti-Spam Policy</a>
-</li>
-<li>
-<a href="$(ROOT)/meta/FAQ/" title="Frequently asked questions list">FAQ</a>
-</li>
-<li>
-<a href="$(ROOT)/me/blogs/">RSS/Atom Feeds</a>
-</li>
-</ul>
-
-<p>
-Written, designed and maintained by Shlomi Fish, 
-<mailto_link_to_self email="<main_email />" />
-</p>
+<webmaster_footer />
 <p>
 If you like what you see here, or have any comments, suggestions or
 corrections, feel free to E-mail me about it. I'd love to hear from you. If

lib/sass/footer.sass

+#footer
+    ul
+        margin-left: auto
+        margin-right: auto
+        text-align: center
+        margin-bottom: 1em
+        li
+            &:first-child
+                border-left-color: transparent
+            display: inline-block
+            margin-left: 0.2em
+            padding-left: 0.3em
+            border-left: white solid 1px
+    p
+        clear: left

lib/sass/style-404.sass

+@import "footer.sass"

lib/sass/style.sass

             color: #40FF40
             background-color: transparent
 
-#footer
-    ul
-        margin-left: auto
-        margin-right: auto
-        text-align: center
-        margin-bottom: 1em
-        li
-            &:first-child
-                border-left-color: transparent
-            display: inline-block
-            margin-left: 0.2em
-            padding-left: 0.3em
-            border-left: white solid 1px
-    p
-        clear: left
+@import "footer.sass"