projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ce894d
)
Take basename of page link when creating a link. Makes blog posts look
author
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 24 Mar 2006 05:44:07 +0000
(
05:44
+0000)
committer
joey
<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
patch
|
blob
|
history
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;