From 1ae3a0dda5c54704ad16dd4753119a1b9d4f309a Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 24 Mar 2006 05:44:07 +0000 Subject: [PATCH] Take basename of page link when creating a link. Makes blog posts look better and I think it's ok. --- ikiwiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.44.0