aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/meta.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-26 11:01:16 -0400
committerJoey Hess <joey@kitenet.net>2012-03-27 15:52:35 -0400
commit4250d389d3ebf3821ac3bdafc04d24ed0e2a6a64 (patch)
treeb6aa2848742be16e0ab1c7160c7a6e3ed1a1a98b /IkiWiki/Plugin/meta.pm
parente5b85018f511bc62dc36ccb2db70ef8a489c0912 (diff)
downloadikiwiki-4250d389d3ebf3821ac3bdafc04d24ed0e2a6a64.tar
ikiwiki-4250d389d3ebf3821ac3bdafc04d24ed0e2a6a64.tar.gz
meta: Export author information in html <meta> tag. Closes: #664779 Thanks, Martin Michlmayr
Diffstat (limited to 'IkiWiki/Plugin/meta.pm')
-rw-r--r--IkiWiki/Plugin/meta.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index 220fff9dc..9b7b9854f 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -275,6 +275,11 @@ sub preprocess (@) {
push @{$metaheaders{$page}}, '<meta name="robots"'.
' content="'.encode_entities($value).'" />';
}
+ elsif ($key eq 'author') {
+ push @{$metaheaders{$page}}, '<meta name="'.
+ encode_entities($key).
+ '" content="'.encode_entities($value).'" />';
+ }
elsif ($key eq 'description') {
push @{$metaheaders{$page}}, '<meta name="'.
encode_entities($key).