Don't show top level breadcrumb
authorQuentin Smith <quentin@mit.edu>
Thu, 15 Jan 2009 09:35:49 +0000 (04:35 -0500)
committerQuentin Smith <quentin@mit.edu>
Thu, 15 Jan 2009 09:35:49 +0000 (04:35 -0500)
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;