From 64e3d86654dc163055d7e1700476f3dd95615a0a Mon Sep 17 00:00:00 2001 From: Uriel Date: Sun, 1 Feb 2009 20:03:27 +0100 Subject: [PATCH] Display date in post listing. --- apps/blagh/app.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc index 8e3bbd6..035a7db 100644 --- a/apps/blagh/app.rc +++ b/apps/blagh/app.rc @@ -54,9 +54,9 @@ fn blagh_setup_feed_handlers { 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 {