aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/meta.pm14
-rw-r--r--debian/changelog1
2 files changed, 12 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index 7d68a9b2d..d18585d3d 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -253,12 +253,20 @@ sub preprocess (@) {
' 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).'" />';
}
+ elsif ($key eq 'name') {
+ push @{$metaheaders{$page}}, scrub('<meta '.$key.'="'.
+ encode_entities($value).
+ join(' ', map { "$_=\"$params{$_}\"" } keys %params).
+ ' />', $destpage);
+ }
else {
- 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);
}
return "";
diff --git a/debian/changelog b/debian/changelog
index b6a783787..167d02c6f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ ikiwiki (3.20100723) UNRELEASED; urgency=low
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