diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-11-05 01:45:23 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-01-30 18:06:44 +0100 |
commit | 0b5d1ae65c187c4a2521ae62c4dda564bb6354a8 (patch) | |
tree | aeba95e2a2907b1dc58f4a92ace6f48be4955969 /IkiWiki/Plugin | |
parent | d43a5a194860d3e7d36fd14888d38e0fe8ccb467 (diff) |
Diffstat (limited to 'IkiWiki/Plugin')
-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 5cfa728..a9159a5 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -206,6 +206,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; |