summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-11-05 01:45:23 +0100
committerJonas Smedegaard <dr@jones.dk>2010-11-05 01:45:23 +0100
commitd77be285137427dfe2423af0655dafbb7c0181d7 (patch)
tree157415e5080fbb43c30da6498f268071202676cd
parentf4946f4da428a44fc28d7ad96431f1621000fd15 (diff)
Extend plugin meta to support foaf.allinone
-rw-r--r--perl/IkiWiki/Plugin/meta.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl/IkiWiki/Plugin/meta.pm b/perl/IkiWiki/Plugin/meta.pm
index 5cfa728..a9159a5 100644
--- a/perl/IkiWiki/Plugin/meta.pm
+++ b/perl/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;