From: Joey Hess Date: Mon, 16 Nov 2009 20:44:03 +0000 (-0500) Subject: avoid fallthrough to default meta header addition for title X-Git-Tag: 3.20091202~55 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=20cdadba32dfd0280a3d17aef7136c0490ccb3d7;p=ikiwiki.git avoid fallthrough to default meta header addition for title With the htmlscrubber disabled, it was adding a tag for the title, which is pointless. --- 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);