swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 694e1580c9ee1efcf3076a62078125fd771387ec
parent 514b7ef4cd5704b040d196d264a154cc4672163e
Author: uriel@soma <unknown>
Date:   Wed, 25 Feb 2009 05:24:05 +0000

Improve default sitemap template, including Google's enhanced 404 pages by default.
Diffstat:
Mlib/404.tpl | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/lib/404.tpl b/lib/404.tpl @@ -1,7 +1,12 @@ -<!-- To have a custom 404 page copy this template to your site's (or masterSite) _inc director and edit it as you like --> +<h1>The requested document at '<i>%($base_url$"req_path%)</i>' doesn't exist</h1> -<h1>The page requested for <i> -% echo ''''$"req_path'''' -</i> doesn't exist</h1> +% # Google Enhanced 404 pages: http://www.google.com/support/webmasters/bin/answer.py?answer=93644 +<script type="text/javascript"> + var GOOG_FIXURL_LANG = 'en'; + var GOOG_FIXURL_SITE = '%($base_url%)/'; +</script> +<script type="text/javascript" + src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script> -% # TODO: Use http://www.google.com/support/webmasters/bin/answer.py?answer=100044&hl=en by default? +<h4>Or take a look at the <a href="/sitemap">sitemap</a>.</h4> +<hr />