Package: ikiwiki
Version: 3.20110328
Severity: wishlist
Tags: patch
Please consider applying attached patch to have meta.pm support FOAF
file advertising from web pages (typically the front page, but not
necessarily).
commit 750292af62ac54d15ad9ffd7da02b7be672e0d1b
Author: Jonas Smedegaard <[email protected]>
Date: Sun Apr 17 21:32:58 2011 +0200
Add FOAF suppport to meta.pm.
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index faa851a..93183a9 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -219,6 +219,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;