aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-18 00:24:22 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-18 00:24:22 +0000
commitcedb48765b52d3e074f43703cf55611b3bce101d (patch)
treeeb35fa82b6ed9f2c63cb111453de2a5af59d9188 /IkiWiki.pm
parent5d37a3837c6a047d47ec6eadc0859c97db65416e (diff)
downloadikiwiki-cedb48765b52d3e074f43703cf55611b3bce101d.tar
ikiwiki-cedb48765b52d3e074f43703cf55611b3bce101d.tar.gz
* Add a tail fin^W^Wsidebar plugin by Tuomo Valkonen.
* If a page links to itself, mark up the link text in a span with class="selflink" so that it can be styled. I don't have a useful style defined for that though.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 4fc37110b..4e3011918 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -345,7 +345,8 @@ sub htmllink ($$$;$$$) { #{{{
$linktext=pagetitle(basename($link)) unless defined $linktext;
- return $linktext if length $bestlink && $page eq $bestlink;
+ return "<span class=\"selflink\">$linktext</span>"
+ if length $bestlink && $page eq $bestlink;
# TODO BUG: %renderedfiles may not have it, if the linked to page
# was also added and isn't yet rendered! Note that this bug is