From 3128409c06ea865190af2f8a2097d361f122171d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 6 Apr 2012 16:20:19 +0100 Subject: trail: delete the right state At some point I changed the storage of trail members' membership and forgot to update this use. (It turns out to be rather difficult to reach this code, possibly even impossible: it only applies if a member somehow ceases to match the trail's pagespec without either the trail or the member changing.) --- IkiWiki/Plugin/trail.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/trail.pm b/IkiWiki/Plugin/trail.pm index 34a2ca5b6..7d2338f9b 100644 --- a/IkiWiki/Plugin/trail.pm +++ b/IkiWiki/Plugin/trail.pm @@ -335,7 +335,7 @@ sub prerender { if (exists $pagestate{$member}{trail}{item} && ! exists $member_to_trails{$member}) { $rebuild_trail_members{$member} = 1; - delete $pagestate{$member}{trailitem}; + delete $pagestate{$member}{trail}{item}; } } -- cgit v1.2.3 From 1a8cbf526cdc7e77bfa084e266b8633858b68a09 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 9 Apr 2012 16:12:07 +0100 Subject: Have trail links at both beginning and end in the default templates --- templates/page.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/page.tmpl b/templates/page.tmpl index 770ac2399..89b4f3a06 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -149,6 +149,8 @@