From d77be285137427dfe2423af0655dafbb7c0181d7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 5 Nov 2010 01:45:23 +0100 Subject: Extend plugin meta to support foaf. --- perl/IkiWiki/Plugin/meta.pm | 7 +++++++ 1 file changed, 7 insertions(+) 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}}, ''; + } + } elsif ($key eq 'redir') { return "" if $page ne $destpage; my $safe=0; -- cgit v1.2.3