projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65e9fbf
)
avoid fallthrough to default meta header addition for title
author
Joey Hess
<joey@gnu.kitenet.net>
Mon, 16 Nov 2009 20:44:03 +0000
(15:44 -0500)
committer
Joey 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
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/meta.pm
b/IkiWiki/Plugin/meta.pm
index 6fe9cda3424a6b85ba92f1b975f568b5e7eaaa40..6bdb6f39ccf9fa61fecac50c5f5aa36923c2de9f 100644
(file)
--- 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);