swerc

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

commit 0caffac3988e627fabeebb005e7ad03dc97dd5c4
parent 1eb0588a06ff364229fd6360c2a75c7af6b8fb2f
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Sat, 20 Dec 2008 22:36:25 +0100

Add timezone to blog posts date, thanks to dho for the original patch.

Used the opportunity to provide the current date/time info in $current_date_time for any other similar uses.
Diffstat:
Mbin/cgilib.rc | 2+-
Mbin/werc.rc | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/cgilib.rc b/bin/cgilib.rc @@ -254,7 +254,7 @@ fn gen_blog_post_title { } if not if(~ $#blogDirs 1) by='By '$du(4) - echo '##<a href="'^$"permlink^'">' $"title^'</a> *( '$by Last mod: $du(7 8 9) ' )*' + echo '##<a href="'^$"permlink^'">' $"title^'</a> *( '$by Last mod: $du(7 8 9) $current_date_time(5) ' )*' } diff --git a/bin/werc.rc b/bin/werc.rc @@ -212,6 +212,7 @@ headers=lib/headers.tpl master_template=default_master.tpl sidebar=sidebar baseuri=http://$site/ +current_date_time=`{date} for(i in siteTitle siteSubTitle pageTitle extraHeaders) $i = ''