aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2007-12-19 16:44:33 -0500
committerJoey Hess <joey@kitenet.net>2007-12-19 16:44:33 -0500
commitb30fed47ea20c4b04c1cf9c68b6d69cfa0612c3a (patch)
tree004adf7aedd77e70b138d4003bc5841058cb8e95 /IkiWiki
parent300e69bbbd22e512f2473286893a413f215e1921 (diff)
downloadikiwiki-b30fed47ea20c4b04c1cf9c68b6d69cfa0612c3a.tar
ikiwiki-b30fed47ea20c4b04c1cf9c68b6d69cfa0612c3a.tar.gz
* Improved parentlinks special case for index pages.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Render.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 047ab8212..4fefadf09 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -55,8 +55,8 @@ sub parentlinks ($) { #{{{
my $path="";
my $title=$config{wikiname};
- return if $page eq 'index'; # toplevel
foreach my $dir (split("/", $page)) {
+ next if $dir eq 'index';
push @ret, { url => urlto($path, $page), page => $title };
$path.="/".$dir;
$title=pagetitle($dir);