avoid fallthrough to default meta header addition for title
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 16 Nov 2009 20:44:03 +0000 (15:44 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 16 Nov 2009 20:44:03 +0000 (15:44 -0500)
With the htmlscrubber disabled, it was adding a <meta name=title>
tag for the title, which is pointless.

IkiWiki/Plugin/meta.pm

index 6fe9cda3424a6b85ba92f1b975f568b5e7eaaa40..6bdb6f39ccf9fa61fecac50c5f5aa36923c2de9f 100644 (file)
@@ -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);