diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-14 05:33:44 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-14 05:33:44 +0000 |
commit | 7144eb3973ac73a5f79440f91a7c01665fb83aa4 (patch) | |
tree | 45660add8e0850c743b22862422f96efbb02cc98 /ikiwiki | |
parent | e2e1badeaec77ad6a606d7ba96c2f4be3201a4a2 (diff) |
Some fixes to the parent links, I think the link to the index will be right
in all cases now.
Diffstat (limited to 'ikiwiki')
-rwxr-xr-x | ikiwiki | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -307,15 +307,14 @@ sub parentlinks ($) { #{{{ my $skip=1; foreach my $dir (reverse split("/", $page)) { if (! $skip) { + $path.="../"; unshift @ret, { url => "$path$dir.html", page => $dir }; } else { $skip=0; } - $path.="../"; } - $path=~s!../!!; - unshift @ret, { url => $path , page => $config{wikiname} }; + unshift @ret, { url => length $path ? $path : ".", page => $config{wikiname} }; return @ret; } #}}} |