my %title;
my %permalink;
my %author;
+my %authorurl;
sub import { #{{{
IkiWiki::hook(type => "preprocess", id => "meta",
}
elsif ($key eq 'permalink') {
$permalink{$page}=$value;
+ $meta{$page}.="<link rel=\"bookmark\" href=\"".encode_entities($value)."\" />\n";
}
else {
$meta{$page}.="<meta name=\"".encode_entities($key).
if ($key eq 'author') {
$author{$page}=$value;
}
+ elsif ($key eq 'authorurl') {
+ $authorurl{$page}=$value;
+ }
}
return "";
if exists $permalink{$page} && $template->query(name => "permalink");
$template->param(author => $author{$page})
if exists $author{$page} && $template->query(name => "author");
+ $template->param(authorurl => $authorurl{$page})
+ if exists $authorurl{$page} && $template->query(name => "authorurl");
} # }}}