Introduction
Introduction Statistics Contact Development Disclaimer Help
Allow to hide 'by line' in blog posts by setting blogAuthor to ''. - swerc - an…
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit f246e544b722f233beed28730cb5b346124e1847
parent 6102c5bd6cc5153640258fd9a57eaeab7f1bc266
Author: [email protected] <unknown>
Date: Sun, 23 Nov 2008 22:31:07 +0100
Allow to hide 'by line' in blog posts by setting blogAuthor to ''.
Diffstat:
M bin/werc.rc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/bin/werc.rc b/bin/werc.rc
@@ -86,8 +86,10 @@ fn gen_blog_post_title {
permlink= `{echo $1 | sed 's,^/[a-z/]*www/,/,; s,^sites/[^/]*/*/,/,; s/\.m…
du=`{ls -l $1}
by = ''
- if (! ~ $#blogAuthor 0)
- by='By '$"blogAuthor
+ if (! ~ $#blogAuthor 0) {
+ if (! ~ $blogAuthor '')
+ by='By '$"blogAuthor
+ }
if not if (~ $#blogDirs 1)
by='By '$du(4)
echo '##<a href="'^$"permlink^'">' $"title^'</a> *( '$by Last mod: $du(7 8…
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.