The idea here is that <meta name="foo" description="bar">
can be written like [[!meta name="foo" description="bar">.
Of course, [[!meta foo=bar]] is still supported; this new feature
provides some DWIM when trying to directly convert a meta tag into
a meta directive.
' content="'.encode_entities($value).'" />';
}
elsif ($key eq 'description') {
' content="'.encode_entities($value).'" />';
}
elsif ($key eq 'description') {
- push @{$metaheaders{$page}}, '<meta name="'.encode_entities($key).
+ push @{$metaheaders{$page}}, '<meta name="'.
+ encode_entities($key).
'" content="'.encode_entities($value).'" />';
}
'" content="'.encode_entities($value).'" />';
}
+ elsif ($key eq 'name') {
+ push @{$metaheaders{$page}}, scrub('<meta '.$key.'="'.
+ encode_entities($value).
+ join(' ', map { "$_=\"$params{$_}\"" } keys %params).
+ ' />', $destpage);
+ }
- push @{$metaheaders{$page}}, scrub('<meta name="'.encode_entities($key).
- '" content="'.encode_entities($value).'" />', $destpage);
+ push @{$metaheaders{$page}}, scrub('<meta name="'.
+ encode_entities($key).'" content="'.
+ encode_entities($value).'" />', $destpage);
translated languages can be controlled. (intrigeri)
* git: Fix gitweb historyurl examples so "diff to current" links work.
(Thanks jrayhawk)
translated languages can be controlled. (intrigeri)
* git: Fix gitweb historyurl examples so "diff to current" links work.
(Thanks jrayhawk)
+ * meta: Allow syntax closer to html meta to be used.
-- Joey Hess <joeyh@debian.org> Fri, 23 Jul 2010 14:00:32 -0400
-- Joey Hess <joeyh@debian.org> Fri, 23 Jul 2010 14:00:32 -0400