From 3a2dfb94cbe475faa16f0329ffc5e75f330d1afa Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 29 Jul 2006 19:16:55 +0000 Subject: * Build-depend on libtext-wikiformat-perl, so that the syntax check of the wikiformat plugin works. Thanks, Emanuele Aina. * Patch from Alessandro Dotti Contra to clean up backlinks and navbar display, running them through pagetitle. This removes ugly underscores and other gunk from the display, much nicer. You may want to rebuild your wiki when upgrading to get the cleanup globally. --- IkiWiki/Render.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 02dbd34bd..caec7f1f0 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -58,7 +58,7 @@ sub backlinks ($) { #{{{ $p_trimmed=~s/^\Q$dir\E// && $page_trimmed=~s/^\Q$dir\E//; - push @links, { url => $href, page => $p_trimmed }; + push @links, { url => $href, page => pagetitle($p_trimmed) }; } } @@ -76,7 +76,7 @@ sub parentlinks ($) { #{{{ foreach my $dir (reverse split("/", $page)) { if (! $skip) { $path.="../"; - unshift @ret, { url => "$path$dir.html", page => $dir }; + unshift @ret, { url => "$path$dir.html", page => pagetitle($dir) }; } else { $skip=0; -- cgit v1.2.3