meta: Allow use of DESCRIPTION in templates to get at the meta description value. (Thanks, NicolasLimare)

master
Joey Hess 2009-11-16 15:54:11 -05:00
parent 4fa17df57d
commit 43a1640345
2 changed files with 3 additions and 1 deletions

View File

@ -267,7 +267,7 @@ sub pagetemplate (@) {
$template->param(title_overridden => 1);
}
foreach my $field (qw{author authorurl permalink}) {
foreach my $field (qw{author authorurl description permalink}) {
$template->param($field => $pagestate{$page}{meta}{$field})
if exists $pagestate{$page}{meta}{$field} && $template->query(name => $field);
}

2
debian/changelog vendored
View File

@ -2,6 +2,8 @@ ikiwiki (3.20091114) UNRELEASED; urgency=low
* meta: Generate meta description tags even when the html scrubber is
enabled.
* meta: Allow use of DESCRIPTION in templates to get at the meta description
value. (Thanks, NicolasLimare)
-- Joey Hess <joeyh@debian.org> Mon, 16 Nov 2009 15:46:45 -0500