]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Take basename of page link when creating a link. Makes blog posts look
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 24 Mar 2006 05:44:07 +0000 (05:44 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 24 Mar 2006 05:44:07 +0000 (05:44 +0000)
better and I think it's ok.

ikiwiki

diff --git a/ikiwiki b/ikiwiki
index 1451cb8aa6acda61bc9b457927e3325697fe02d4..235a72102f61ee3078871ae7d2be37ccb2de99d2 100755 (executable)
--- 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;