trail: no 'up' page if it's a member of the trail
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 15 Feb 2013 21:43:50 +0000 (22:43 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 21 Oct 2019 16:31:07 +0000 (18:31 +0200)
commit3e68e8694463e1e1ce3bb51b58e28d6034f90b0d
tree2988040cd482d702a40e1c48d5480825bfbe3d8d
parenta71cd1bbc2b226dded190afdb9574ad2ec2438e0
trail: no 'up' page if it's a member of the trail

When a trail includes its index page among the members, the pages
before/after it will have “double links” to the index page (both as
next/prev and as 'up') and the index page will include an 'up' link to
itself.

Prevent this by not defining the appropriate template variables when the
index page is member of the trail itself. The default page template is
also adapted to skip the link at all in this case.
IkiWiki/Plugin/trail.pm
templates/page.tmpl
templates/trails.tmpl