From c10cfb27d1e15eb3d69923e8aae9e84f3f14926a Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 2 Mar 2008 15:51:31 +0100 Subject: Add robots tag to meta plugin Add special handling for which needs not be scrubbed as it's harmless. Signed-off-by: martin f. krafft (cherry picked from commit b15d0299a7f7b147e89d8a202d6cca1c21491af2) --- IkiWiki/Plugin/meta.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index 74b630afc..2df5a727c 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -193,6 +193,10 @@ sub preprocess (@) { #{{{ " />\n"); } } + elsif ($key eq 'robots') { + push @{$metaheaders{$page}}, ''; + } else { push @{$metaheaders{$page}}, scrub(''); -- cgit v1.2.3