diff options
author | Joey Hess <joey@kitenet.net> | 2012-03-26 11:05:03 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-03-27 15:52:35 -0400 |
commit | 88e8f0ced96c65c7a04f95eb5aa72679937593c9 (patch) | |
tree | 37430f04cd954132090edd5edb416f34711e7e81 | |
parent | 4250d389d3ebf3821ac3bdafc04d24ed0e2a6a64 (diff) | |
download | ikiwiki-88e8f0ced96c65c7a04f95eb5aa72679937593c9.tar ikiwiki-88e8f0ced96c65c7a04f95eb5aa72679937593c9.tar.gz |
simplify
-rw-r--r-- | IkiWiki/Plugin/meta.pm | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index 9b7b9854f..28b1a1ad6 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -275,18 +275,12 @@ 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). + elsif ($key eq 'description' || $key eq 'author') { + push @{$metaheaders{$page}}, '<meta name="'.$key. '" content="'.encode_entities($value).'" />'; } elsif ($key eq 'name') { - push @{$metaheaders{$page}}, scrub('<meta '.$key.'="'. + push @{$metaheaders{$page}}, scrub('<meta name="'. encode_entities($value). join(' ', map { "$_=\"$params{$_}\"" } keys %params). ' />', $page, $destpage); |