diff options
author | Joey Hess <joey@kitenet.net> | 2007-12-19 16:44:33 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-12-19 16:44:33 -0500 |
commit | b30fed47ea20c4b04c1cf9c68b6d69cfa0612c3a (patch) | |
tree | 004adf7aedd77e70b138d4003bc5841058cb8e95 /IkiWiki | |
parent | 300e69bbbd22e512f2473286893a413f215e1921 (diff) | |
download | ikiwiki-b30fed47ea20c4b04c1cf9c68b6d69cfa0612c3a.tar ikiwiki-b30fed47ea20c4b04c1cf9c68b6d69cfa0612c3a.tar.gz |
* Improved parentlinks special case for index pages.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Render.pm | 2 |
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); |