aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-07-14 14:52:34 +0200
committerintrigeri <intrigeri@boum.org>2008-07-14 14:52:34 +0200
commitb391b5a80bd0e18a21339e6f33f7710de0c5595d (patch)
treeb4e144a89186a6f29cec1600c6e611907bfb80e3 /IkiWiki
parentb857b229d8ff3601bbf01fafa51a3b3d3da928d8 (diff)
downloadikiwiki-b391b5a80bd0e18a21339e6f33f7710de0c5595d.tar
ikiwiki-b391b5a80bd0e18a21339e6f33f7710de0c5595d.tar.gz
pedigree: added DISTANCE loop variable
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/pedigree.pm1
1 files changed, 1 insertions, 0 deletions
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)),