aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-29 19:16:55 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-29 19:16:55 +0000
commit3a2dfb94cbe475faa16f0329ffc5e75f330d1afa (patch)
tree4203234d0e6fc63250e9b3e5ec1459986e9da7e7 /IkiWiki/Render.pm
parent13c466728c72379cc30551c75e882e2dcabbf38c (diff)
downloadikiwiki-3a2dfb94cbe475faa16f0329ffc5e75f330d1afa.tar
ikiwiki-3a2dfb94cbe475faa16f0329ffc5e75f330d1afa.tar.gz
* 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.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm4
1 files changed, 2 insertions, 2 deletions
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;