- return \@links, [] if @links <= $config{numbacklinks} || ! $config{numbacklinks};
- return [@links[0..$config{numbacklinks}-1]],
- [@links[$config{numbacklinks}..$#links]];
-} #}}}
-
-sub parentlinks ($) { #{{{
- my $page=shift;
-
- my @ret;
- my $pagelink="";
- my $path="";
- my $title=$config{wikiname};
-
- return if $page eq 'index'; # toplevel
- foreach my $dir (split("/", $page)) {
- push @ret, { url => urlto($path, $page), page => $title };
- $path.="/".$dir;
- $title=pagetitle($dir);
- }
- return @ret;
-} #}}}
-
-sub genpage ($$$) { #{{{