From: Quentin Smith Date: Thu, 15 Jan 2009 09:35:49 +0000 (-0500) Subject: Don't show top level breadcrumb X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/5ac08c11b4c6c81482715cb1aacbdb782b655e23 Don't show top level breadcrumb --- diff --git a/IkiWiki/Plugin/parentlinks.pm b/IkiWiki/Plugin/parentlinks.pm index ebf1d449a..f172151bd 100644 --- a/IkiWiki/Plugin/parentlinks.pm +++ b/IkiWiki/Plugin/parentlinks.pm @@ -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;