ref: 296f11aa4410fad3d4bab35fb4c2ae22cfbeb066
parent: b25d1f62a3d2363961ed43bce568dd8d9fa5fa7d
author: uriel <[email protected]>
date: Sun Feb 1 15:03:27 EST 2009
Display date in post listing.
--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -54,9 +54,9 @@
fn blagh_body {
for(p in `{get_post_list $blagh_root^$blagh_dirs}) {
- l=`{echo -n $p|sed 's!'$sitedir^$req_path'!!'}
- sed '1s!.*![&]('$l')!' < $p/index.md | $formatter
- }
+ l=`{echo -n $p|sed 's!'$sitedir^$req_path'./([0-9]+/[0-9][0-9]/[0-9][0-9])(.*)!\1 ./\1\2!'}
+ sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' < $p/index.md
+ } | $formatter
}
fn get_post_list {