From 09b0a3b73f7c9ca873c3e20a64b124c0749b3d3b Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 5 Aug 2007 20:48:13 +0000 Subject: * Add rel=tag attribute to tag links, supporting that microformat, as well as allowing them to be styled specially. Thanks, NicolasLimare. --- IkiWiki.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'IkiWiki.pm') diff --git a/IkiWiki.pm b/IkiWiki.pm index 88dcdcb5b..0af4a4fe9 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -546,7 +546,12 @@ sub htmllink ($$$;@) { #{{{ $bestlink.="#".$opts{anchor}; } - return "$linktext"; + my @attrs; + if (defined $opts{rel}) { + push @attrs, ' rel="'.$opts{rel}.'"'; + } + + return "$linktext"; } #}}} sub htmlize ($$$) { #{{{ -- cgit v1.2.3