]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/map.pm
add news item for ikiwiki 2.30
[git.ikiwiki.info.git] / IkiWiki / Plugin / map.pm
index b08d78d76dc6752ee37012bb3df707eba7faefc4..581ae5011f8a002190f133f6ce999797bae43b1b 100644 (file)
@@ -37,6 +37,9 @@ sub preprocess (@) { #{{{
                                my @b=split(/\//, $common_prefix);
                                $common_prefix="";
                                while (@a && @b && $a[0] eq $b[0]) {
                                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;
                                }
                                        $common_prefix.=shift(@a);
                                        shift @b;
                                }
@@ -97,7 +100,9 @@ sub preprocess (@) { #{{{
                                $dummy=1;
                                $p.="/".shift(@bits);
                                $map .= "<li>"
                                $dummy=1;
                                $p.="/".shift(@bits);
                                $map .= "<li>"
-                                       .htmllink($params{page}, $params{destpage}, $p, class => "mapparent")
+                                       .htmllink($params{page}, $params{destpage},
+                                                $p, class => "mapparent",
+                                                noimageinline => 1)
                                        ."\n";
                                $openli=1;
                        }
                                        ."\n";
                                $openli=1;
                        }
@@ -108,7 +113,8 @@ sub preprocess (@) { #{{{
                $map .= "</li>\n" if $openli;
                $map .= "<li>"
                        .htmllink($params{page}, $params{destpage}, 
                $map .= "</li>\n" if $openli;
                $map .= "<li>"
                        .htmllink($params{page}, $params{destpage}, 
-                               "/".$common_prefix."/".$item, class => "mapitem")
+                               "/".$common_prefix."/".$item,
+                               class => "mapitem", noimageinline => 1)
                        ."\n";
                $openli=1;
                $parent=$item;
                        ."\n";
                $openli=1;
                $parent=$item;