pedigree: added DISTANCE loop variable
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
b857b229d8
commit
b391b5a80b
|
@ -27,6 +27,7 @@ sub pedigree ($) { #{{{
|
||||||
url => urlto($path, $page),
|
url => urlto($path, $page),
|
||||||
page => $title,
|
page => $title,
|
||||||
absdepth => $i,
|
absdepth => $i,
|
||||||
|
distance => ($pagedepth - $i),
|
||||||
is_root => ($i eq 0),
|
is_root => ($i eq 0),
|
||||||
is_second_ancestor => ($i eq 1),
|
is_second_ancestor => ($i eq 1),
|
||||||
is_grand_mother => ($i eq ($pagedepth - 2)),
|
is_grand_mother => ($i eq ($pagedepth - 2)),
|
||||||
|
|
Loading…
Reference in New Issue