From: intrigeri Date: Mon, 14 Jul 2008 12:52:34 +0000 (+0200) Subject: pedigree: added DISTANCE loop variable X-Git-Tag: 2.54~70^2~5 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/b391b5a80bd0e18a21339e6f33f7710de0c5595d pedigree: added DISTANCE loop variable Signed-off-by: intrigeri --- diff --git a/IkiWiki/Plugin/pedigree.pm b/IkiWiki/Plugin/pedigree.pm index 1bc9ee14d..f91ea94b4 100644 --- a/IkiWiki/Plugin/pedigree.pm +++ b/IkiWiki/Plugin/pedigree.pm @@ -27,6 +27,7 @@ sub pedigree ($) { #{{{ url => urlto($path, $page), page => $title, absdepth => $i, + distance => ($pagedepth - $i), is_root => ($i eq 0), is_second_ancestor => ($i eq 1), is_grand_mother => ($i eq ($pagedepth - 2)),