diff options
author | Joey Hess <joey@kitenet.net> | 2011-04-21 19:52:39 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-04-21 19:52:39 -0400 |
commit | 270fd45c5d30c06f69e18488f08a7f6bdec95813 (patch) | |
tree | 997507d536f311c182b0ca924c5c400d3699775d /IkiWiki | |
parent | 718e9909c6340ef0930ecfb4fec4c21a2a5fd29d (diff) |
meta: Add FOAF support. Closes: #623156 (Jonas Smedegaard)
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/meta.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index cd6fa20ba..b857f453e 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -217,6 +217,13 @@ sub preprocess (@) { 'content="'.encode_entities($url).'" />'; } } + elsif ($key eq 'foaf') { + if (safeurl($value)) { + push @{$metaheaders{$page}}, '<link rel="meta" '. + 'type="application/rdf+xml" title="FOAF" '. + 'href="'.encode_entities($value).'" />'; + } + } elsif ($key eq 'redir') { return "" if $page ne $destpage; my $safe=0; |