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:
parent
4052a82ee4
commit
e197bfb743
1 changed files with 2 additions and 0 deletions
|
|
@ -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>'
|
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}) {
|
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!'}
|
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(1)^')!' < $p/index.md
|
sed '1s!.*^') ('^$l(1)^')!' < $p/index.md
|
||||||
|
}
|
||||||
} | $formatter
|
} | $formatter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue