X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/2ed67f7fe7290aa39144d0289bf7205cd421d386..19a7752021249eb8984e523fd6ed5a3730dc9be7:/IkiWiki/Plugin/map.pm diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm index b08d78d76..581ae5011 100644 --- a/IkiWiki/Plugin/map.pm +++ b/IkiWiki/Plugin/map.pm @@ -37,6 +37,9 @@ sub preprocess (@) { #{{{ my @b=split(/\//, $common_prefix); $common_prefix=""; while (@a && @b && $a[0] eq $b[0]) { + if (length $common_prefix) { + $common_prefix.="/"; + } $common_prefix.=shift(@a); shift @b; } @@ -97,7 +100,9 @@ sub preprocess (@) { #{{{ $dummy=1; $p.="/".shift(@bits); $map .= "
  • " - .htmllink($params{page}, $params{destpage}, $p, class => "mapparent") + .htmllink($params{page}, $params{destpage}, + $p, class => "mapparent", + noimageinline => 1) ."\n"; $openli=1; } @@ -108,7 +113,8 @@ sub preprocess (@) { #{{{ $map .= "
  • \n" if $openli; $map .= "
  • " .htmllink($params{page}, $params{destpage}, - "/".$common_prefix."/".$item, class => "mapitem") + "/".$common_prefix."/".$item, + class => "mapitem", noimageinline => 1) ."\n"; $openli=1; $parent=$item;