swerc

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

commit df8250ec3cf5e571689539938743c6a9209edbaf
parent 2923a5152210ac67f448e1399b619db67e5fb203
Author: uriel@vm41.cat-v.org <unknown>
Date:   Sun, 19 Jul 2009 04:02:30 +0200

Start to convert templates to HTML 5
Diffstat:
Mlib/404.tpl | 2+-
Mlib/default_master.tpl | 2+-
Mlib/footer.inc | 4++--
Mlib/headers.tpl | 22++++++++++------------
4 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/lib/404.tpl b/lib/404.tpl @@ -9,4 +9,4 @@ src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script> <h4>Or take a look at the <a href="/sitemap">sitemap</a>.</h4> -<hr /> +<hr> diff --git a/lib/default_master.tpl b/lib/default_master.tpl @@ -7,7 +7,7 @@ <h1 class="headerTitle"><a href="/">%($"siteTitle%) <span id="headerSubTitle">%($"siteSubTitle%)</span></a></h1> </div> - <div class="subHeader"><br /></div> + <div class="subHeader"><br></div> </div> % if(! ~ $#handlers_bar_left 0) { diff --git a/lib/footer.inc b/lib/footer.inc @@ -2,5 +2,5 @@ <!-- TODO Maybe should add a programatically generated google search box --> <div class="right"><a href="/_users/login">User Login</a></div> -<br /> -<br class="doNotDisplay doNotPrint" /> +<br> +<br class="doNotDisplay doNotPrint"> diff --git a/lib/headers.tpl b/lib/headers.tpl @@ -1,24 +1,22 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> +<!DOCTYPE HTML> +<html> <head> <title>%($pageTitle%)</title> - <link rel="stylesheet" href="/pub/style/style.css" type="text/css" media="screen, handheld" title="default" /> - <link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon" /> + <link rel="stylesheet" href="/pub/style/style.css" type="text/css" media="screen, handheld" title="default"> + <link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon"> % if(test -f $sitedir/_werc/pub/style.css) -% echo ' <link rel="stylesheet" href="/_werc/pub/style.css" type="text/css" media="screen" title="default" />' +% echo ' <link rel="stylesheet" href="/_werc/pub/style.css" type="text/css" media="screen" title="default">' - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - - <meta name="author" content="k" /> + <meta charset="UTF-8"> +% # Legacy charset declaration for backards compatibility with non-html5 browsers. + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> % if(! ~ $#meta_description 0) -% echo ' <meta name="description" content="'$"meta_description'" />' +% echo ' <meta name="description" content="'$"meta_description'">' % if(! ~ $#meta_keywords 0) -% echo ' <meta name="keywords" content="'$"meta_keywords'" />' +% echo ' <meta name="keywords" content="'$"meta_keywords'">' % h = `{get_lib_file headers.inc} % if(! ~ $#h 0)