ref: e1a653d823f133ad775443fccbc321eadef1334f
parent: a77c9544ce026143736cee49beb6e9f2a4247318
author: uriel <uriel@engel.se.cat-v.org>
date: Sun Nov 23 17:31:07 EST 2008
Allow to hide 'by line' in blog posts by setting blogAuthor to ''.
--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -86,8 +86,10 @@
permlink= `{echo $1 | sed 's,^/[a-z/]*www/,/,; s,^sites/[^/]*/*/,/,; s/\.md$//' }
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 9) ' )*'