parentlinks: Add has_parentlinks template parameter to allow styling the toplevel index differently etc.
parent
3440a015ba
commit
2acaa15830
|
@ -55,8 +55,11 @@ sub pagetemplate (@) {
|
||||||
my $page=$params{page};
|
my $page=$params{page};
|
||||||
my $template=$params{template};
|
my $template=$params{template};
|
||||||
|
|
||||||
if ($template->query(name => "parentlinks")) {
|
if ($template->query(name => "parentlinks") ||
|
||||||
$template->param(parentlinks => [parentlinks($page)]);
|
$template->query(name => "has_parentlinks")) {
|
||||||
|
my @links=[parentlinks($page)];
|
||||||
|
$template->param(parentlinks => \@links);
|
||||||
|
$template->param(has_parentlinks => (@links > 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
ikiwiki (3.14159266) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* parentlinks: Add has_parentlinks template parameter to allow styling
|
||||||
|
the toplevel index differently etc.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sun, 27 Sep 2009 17:40:03 -0400
|
||||||
|
|
||||||
ikiwiki (3.14159265) unstable; urgency=low
|
ikiwiki (3.14159265) unstable; urgency=low
|
||||||
|
|
||||||
* Add complete French basewiki and underlays translation from the Debian
|
* Add complete French basewiki and underlays translation from the Debian
|
||||||
|
|
Loading…
Reference in New Issue