ref: 5a44576800394084d6f7b4761c11271e08686933
parent: 408ba6b26870363f9dbc08c7c05c1311ff31af7d
author: sl <uriel@engel.se.cat-v.org>
date: Sat Feb 14 15:34:23 EST 2009
Fix dates display in blogs.
--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -66,7 +66,7 @@
echo '<div style="text-align:right">(<a href="index.rss">RSS Feed</a>|<a href="index.atom">Atom Feed</a>)</div>'
for(p in `{get_post_list $blagh_root^$blagh_dirs}) {
- l=`{echo -n $p|sed 's!'$sitedir^'/?(.*)([0-9]+/[0-9][0-9]/[0-9][0-9])(/[^/]+/)!\2 /\1\2\3!'}
+ l=`{echo -n $p|sed 's!'$sitedir^'/?(.*)([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])(/[^/]+/)!\2 /\1\2\3!'}
sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' < $p/index.md
} | $formatter
}