From e197bfb743217c5777bbc5c6f4d3040cd9bea44d Mon Sep 17 00:00:00 2001 From: Uriel Date: Fri, 12 Jun 2009 23:56:48 +0200 Subject: [PATCH] Optimization/fix to only pass the content of all blog posts at once to $formatter This seems to some how fix a strange bug I have seen on my test setup, need to investigate more. --- apps/blagh/app.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc index f652eae..95f4a35 100644 --- a/apps/blagh/app.rc +++ b/apps/blagh/app.rc @@ -68,9 +68,11 @@ fn blagh_body { echo '
(RSS Feed|Atom Feed)
' + { # XXX Not sure why this fixes issues with blog setup, probably bug in fltr_cache! 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][0-9]/[0-9][0-9])(/[^/]+/)!\2 /\1\2\3!'} sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' < $p/index.md + } } | $formatter }