Introduction
Introduction Statistics Contact Development Disclaimer Help
Add timezone to blog posts date, thanks to dho for the original patch. - swerc …
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit 0caffac3988e627fabeebb005e7ad03dc97dd5c4
parent 1eb0588a06ff364229fd6360c2a75c7af6b8fb2f
Author: [email protected] <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_tim…
Diffstat:
M bin/cgilib.rc | 2 +-
M bin/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…
+ echo '##<a href="'^$"permlink^'">' $"title^'</a> *( '$by Last mod: $du(7 8…
}
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 = ''
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.