swerc

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

commit 5729426f58c601e82c25fee7deaa85b12c990968
parent 597098578fcc5f7cd6cbccd947b011804b81497a
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Thu, 28 Jun 2007 07:23:12 +0200

Add new meta headers (description and keywords), replace '-' with '|' in titles and comment out alternative stylesheet.
Diffstat:
Minc/headers.tpl | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/inc/headers.tpl b/inc/headers.tpl @@ -8,17 +8,24 @@ Content-Type: text/html <meta name="verify-v1" content="6zEoK0WMlnLmIS/w7Pnh6+srZECHsvnMGN0kQmowSGk=" /> - <title>%($title - $site - $siteTitle $siteSubTitle %)</title> + <title>%($title '|' $site '|' $siteTitle $siteSubTitle %)</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="author" content="k" /> +% if (! ~ $#meta_description 0) +% echo ' <meta name="description" content="'$"meta_description'" />' +% if (! ~ $#meta_keywords 0) +% echo ' <meta name="keywords" content="'$"meta_keywords'" />' + <link rel="stylesheet" href="/pub/style/style.css" type="text/css" media="screen" title="default" /> - <link rel="stylesheet alternative" type="text/css" href="/pub/style/style_old.css" media="screen" title="Old Style" /> +%# <link rel="stylesheet alternative" type="text/css" href="/pub/style/style_old.css" media="screen" title="Old Style" /> % if (test -f $sitedir/_style.css) { <link rel="stylesheet" href="/_style.css" type="text/css" media="screen" title="default" /> % } + %($extraHeaders%) + </head> <body>