From 4da54999de859c505c26ff2a0a23772939caeffa Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 15 Jun 2008 19:08:50 -0400 Subject: meta: Store "description" in pagestate for use by other plugins. map: Support show=description. --- IkiWiki/Plugin/meta.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index e2914a78a..8e1b11859 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -78,6 +78,11 @@ 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 + } + elsif ($key eq 'description') { + $pagestate{$page}{meta}{description}=HTML::Entities::encode_numeric($value); + # fallthrough } elsif ($key eq 'license') { push @{$metaheaders{$page}}, ''; -- cgit v1.2.3