From: joey Date: Fri, 24 Mar 2006 05:44:07 +0000 (+0000) Subject: Take basename of page link when creating a link. Makes blog posts look X-Git-Tag: 1.0~200 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1ae3a0dda5c54704ad16dd4753119a1b9d4f309a;p=ikiwiki.git Take basename of page link when creating a link. Makes blog posts look better and I think it's ok. --- 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;