From cedb48765b52d3e074f43703cf55611b3bce101d Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 18 Aug 2006 00:24:22 +0000 Subject: * 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. --- IkiWiki.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'IkiWiki.pm') 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 "$linktext" + 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 -- cgit v1.2.3