From 5ac08c11b4c6c81482715cb1aacbdb782b655e23 Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Thu, 15 Jan 2009 04:35:49 -0500 Subject: [PATCH] Don't show top level breadcrumb --- IkiWiki/Plugin/parentlinks.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.45.0