summaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-05 20:48:13 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-05 20:48:13 +0000
commit09b0a3b73f7c9ca873c3e20a64b124c0749b3d3b (patch)
treeb97942e96826478da4a6060a94100ac778ff9e85 /doc/todo
parent1d61c4d4d690624f6d6fb34b6decd5507a003298 (diff)
* Add rel=tag attribute to tag links, supporting that microformat, as well
as allowing them to be styled specially. Thanks, NicolasLimare.
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/CSS_classes_for_links.mdwn4
-rw-r--r--doc/todo/rel_attribute_for_links.mdwn37
2 files changed, 7 insertions, 34 deletions
diff --git a/doc/todo/CSS_classes_for_links.mdwn b/doc/todo/CSS_classes_for_links.mdwn
index fedf5b355..ad4813eb2 100644
--- a/doc/todo/CSS_classes_for_links.mdwn
+++ b/doc/todo/CSS_classes_for_links.mdwn
@@ -68,4 +68,8 @@ My best regards,
> Reason is that there are many ways for external links to get into an
> ikiwiki page, including being entered as raw html. The only time ikiwiki
> controls a link is when an internal link is added using a WikiLink.
+>
+> (Note that tags get their own special
+> [[rel_attribute|rel_attribute_for_link]] now that CSS can use.)
+>
> --[[Joey]]
diff --git a/doc/todo/rel_attribute_for_links.mdwn b/doc/todo/rel_attribute_for_links.mdwn
index 7dc220afa..ced192758 100644
--- a/doc/todo/rel_attribute_for_links.mdwn
+++ b/doc/todo/rel_attribute_for_links.mdwn
@@ -7,44 +7,13 @@ A rel="" attribute is desirable for links, for example to
This patch adds this possibility to htmllink().
- --- IkiWiki.pm.orig 2007-08-04 19:04:36.000000000 +0200
- +++ IkiWiki.pm 2007-08-04 19:19:24.000000000 +0200
- @@ -517,6 +517,8 @@
- $linktext=pagetitle(basename($link));
- }
-
- + my $rel=(defined $opts{rel} ? $rel=" rel=\"".$opts{rel}."\"" : '');
- +
- return "<span class=\"selflink\">$linktext</span>"
- if length $bestlink && $page eq $bestlink;
-
- @@ -546,7 +548,7 @@
- $bestlink.="#".$opts{anchor};
- }
-
- - return "<a href=\"$bestlink\">$linktext</a>";
- + return "<a href=\"$bestlink\"$rel>$linktext</a>";
- } #}}}
-
- sub htmlize ($$$) { #{{{
-
This one uses it for tags:
- <pre>
- --- tag.pm.orig 2007-08-04 19:06:15.000000000 +0200
- +++ tag.pm 2007-08-04 19:20:47.000000000 +0200
- @@ -60,7 +60,8 @@
-
- $template->param(tags => [
- map {
- - link => htmllink($page, $destpage, tagpage($_))
- + link => htmllink($page, $destpage,
- + tagpage($_), rel => "tag")
- }, sort keys %{$tags{$page}}
- ]) if exists $tags{$page} && %{$tags{$page}} && $template->query(name => "tags");
+> Both applied, thanks. Leaving the bug open since rel=nofollow etc are
+> still requested here. --[[Joey]]
This can also help for css decoraton. An example of these patches in use: http://poivron.org/~nil/iki/japonesie/horizon_large/
— NicolasLimare
-[[tag wishlist patch]] \ No newline at end of file
+[[tag wishlist patch]]