aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-11-16 15:44:03 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-11-16 15:44:03 -0500
commit20cdadba32dfd0280a3d17aef7136c0490ccb3d7 (patch)
treeb137e6ac6b07aebe4a945bfeb03e1bbc8bef5b0b
parent65e9fbf6e98e0bf5525c39273f0327c0a122276f (diff)
downloadikiwiki-20cdadba32dfd0280a3d17aef7136c0490ccb3d7.tar
ikiwiki-20cdadba32dfd0280a3d17aef7136c0490ccb3d7.tar.gz
avoid fallthrough to default meta header addition for title
With the htmlscrubber disabled, it was adding a <meta name=title> tag for the title, which is pointless.
-rw-r--r--IkiWiki/Plugin/meta.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index 6fe9cda34..6bdb6f39c 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -88,7 +88,7 @@ sub preprocess (@) {
# Metadata collection that needs to happen during the scan pass.
if ($key eq 'title') {
$pagestate{$page}{meta}{title}=HTML::Entities::encode_numeric($value);
- # fallthrough
+ return "";
}
elsif ($key eq 'description') {
$pagestate{$page}{meta}{description}=HTML::Entities::encode_numeric($value);