summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-24 05:44:07 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-24 05:44:07 +0000
commit1ae3a0dda5c54704ad16dd4753119a1b9d4f309a (patch)
tree029873830665ad9c3a355dc5693f7d14b0e1647f
parent0ce894d18c618e5686bc2183d08e8add0c777dfd (diff)
Take basename of page link when creating a link. Makes blog posts look
better and I think it's ok.
-rwxr-xr-xikiwiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/ikiwiki b/ikiwiki
index 1451cb8aa..235a72102 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -262,7 +262,7 @@ sub htmllink ($$;$$) { #{{{
$bestlink="$page/".lc($link);
}
- my $linktext=pagetitle($link);
+ my $linktext=pagetitle(basename($link));
return $linktext if length $bestlink && $page eq $bestlink;