summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/write.mdwn1
-rw-r--r--doc/todo/CSS_classes_for_links.mdwn4
-rw-r--r--doc/todo/rel_attribute_for_links.mdwn37
3 files changed, 8 insertions, 34 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index a122845af..90818c42e 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -372,6 +372,7 @@ control some options. These are:
* forcesubpage - set to force a link to a subpage
* linktext - set to force the link text to something
* anchor - set to make the link include an anchor
+* rel - set to add a rel attribute to the link.
#### `readfile($;$)`
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]]