rootpage is not a pagespec

So ./posts won't be interpreted right. Just "posts" should do, I think.
master
Joey Hess 2008-09-14 13:50:34 -04:00
parent 1e4c9e6733
commit ee94407891
2 changed files with 9 additions and 3 deletions

View File

@ -263,8 +263,14 @@ sub preprocess_inline (@) { #{{{
# Add a blog post form, with feed buttons.
my $formtemplate=template("blogpost.tmpl", blind_cache => 1);
$formtemplate->param(cgiurl => $config{cgiurl});
$formtemplate->param(rootpage =>
exists $params{rootpage} ? $params{rootpage} : $params{page});
my $rootpage;
if (exists $params{rootpage}) {
$rootpage=bestlink($params{page}, $params{rootpage});
}
else {
$rootpage=$params{page};
}
$formtemplate->param(rootpage => $rootpage);
$formtemplate->param(rssurl => $rssurl) if $feeds && $rss;
$formtemplate->param(atomurl => $atomurl) if $feeds && $atom;
if (exists $params{postformtext}) {

View File

@ -7,7 +7,7 @@ browse the tag cloud on the right. An archive of all [[posts]] is also
available.
[[!inline pages="./posts/* and !*/Discussion" show="10"
actions=yes rootpage="./posts"]]
actions=yes rootpage="posts"]]
----