]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/parentlinks.pm
Don't show top level breadcrumb
[ikiwiki.git] / IkiWiki / Plugin / parentlinks.pm
index ebf1d449ae50522dac1174176810c4bd3db99799..f172151bd2b1e21af3d0ff421f1622cda94c9bc9 100644 (file)
@@ -35,6 +35,8 @@ sub parentlinks ($) {
                next if $dir eq 'index';
                $depth=$i;
                $height=($pagedepth - $depth);
+               $path.="/".$dir;
+               $title=pagetitle($dir);
                push @ret, {
                        url => urlto($path, $page),
                        page => $title,
@@ -43,8 +45,6 @@ sub parentlinks ($) {
                        "depth_$depth" => 1,
                        "height_$height" => 1,
                };
-               $path.="/".$dir;
-               $title=pagetitle($dir);
                $i++;
        }
        return @ret;