diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-17 16:00:35 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-17 16:00:35 +0100 |
commit | 62d2d88b76369b9203459aae3341ca48f590b5e4 (patch) | |
tree | aa8fab86cd5e9396106fdf98e338f7c6aa6bbb23 | |
parent | 7372afa95033cc39546664ad7a4f335bb7ea3e53 (diff) |
Robots header done in template now.
-rw-r--r-- | perllib/Page.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm index b2e579888..13c30d81d 100644 --- a/perllib/Page.pm +++ b/perllib/Page.pm @@ -211,16 +211,13 @@ sub template_vars ($%) { 'title' => $params{title}, 'rss' => '', map_js => $params{js} || '', + robots => $params{robots}, ); if ($params{rss}) { $vars{rss} = '<link rel="alternate" type="application/rss+xml" title="' . $params{rss}[0] . '" href="' . $params{rss}[1] . '">'; } - if ($params{robots}) { - $vars{robots} = '<meta name="robots" content="' . $params{robots} . '">'; - } - my $home = !$params{title} && $ENV{SCRIPT_NAME} eq '/index.cgi' && !$ENV{QUERY_STRING}; $vars{heading_element_start} = $home ? '<h1 id="header">' : '<div id="header"><a href="/">'; $vars{heading} = _('Fix<span id="my">My</span>Street'); |