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.
This commit is contained in:
Uriel 2009-06-12 23:56:48 +02:00
parent 4052a82ee4
commit e197bfb743

View file

@ -68,9 +68,11 @@ fn blagh_body {
echo '<div style="text-align:right">(<a href="index.rss">RSS Feed</a>|<a href="index.atom">Atom Feed</a>)</div>'
{ # 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
}