diff options
author | intrigeri <intrigeri@boum.org> | 2008-07-14 14:52:34 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-07-14 14:52:34 +0200 |
commit | b391b5a80bd0e18a21339e6f33f7710de0c5595d (patch) | |
tree | b4e144a89186a6f29cec1600c6e611907bfb80e3 /IkiWiki | |
parent | b857b229d8ff3601bbf01fafa51a3b3d3da928d8 (diff) | |
download | ikiwiki-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.pm | 1 |
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)), |