aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-14 05:33:44 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-14 05:33:44 +0000
commit7144eb3973ac73a5f79440f91a7c01665fb83aa4 (patch)
tree45660add8e0850c743b22862422f96efbb02cc98 /ikiwiki
parente2e1badeaec77ad6a606d7ba96c2f4be3201a4a2 (diff)
downloadikiwiki-7144eb3973ac73a5f79440f91a7c01665fb83aa4.tar
ikiwiki-7144eb3973ac73a5f79440f91a7c01665fb83aa4.tar.gz
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-xikiwiki5
1 files changed, 2 insertions, 3 deletions
diff --git a/ikiwiki b/ikiwiki
index f95ea0f09..7e140bbec 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -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;
} #}}}