Some fixes to the parent links, I think the link to the index will be right

in all cases now.
master
joey 2006-03-14 05:33:44 +00:00
parent e2e1badeae
commit 7144eb3973
3 changed files with 13 additions and 3 deletions

View File

@ -20,3 +20,5 @@
replaced with a link to the [[CGI]]?
* [[ikiwiki]] should go to the same place as [[index]] (on this wiki).
* There's no way to escape a [[WikiLink]] when discussing one on a wiki.
* Seems to be losing track of just-created pages and not adding them to the
index.

View File

@ -77,4 +77,13 @@ recentchanges that goes to the diff for any listed change.
Possibly add "next 100" link to it, but OTOH, you can just use svn log if
you need that data..
## setup classes
The setup files should "use WikiWiki::Setup" and the like at the top, and
indeed could just be one big use that passes all params to the module's
importer. The module then handles running ikiwiki functions. This would
allow for different types of setup files for more than just the one
hardcoded thing there is now, and would probably be good for upgrades,
incompatible changes, etc, too.
## [[Bugs]]

View File

@ -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;
} #}}}