]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
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)
committerJoey Hess <joey@kitenet.net>
Sat, 16 Feb 2013 16:16:18 +0000 (12:16 -0400)
commitcca5cb0a5e3071f1ce77688d0b5b9df42135c5b2
tree1ede2c7bdf9bafa33bede7df873e6eb4b1a328c0
parente2405005e6253e5040ffd305534f2bfc91d1e940
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 â\80\9cdouble linksâ\80\9d 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