summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/LayoutHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-04 13:50:09 +0100
committerYorhel <git@yorhel.nl>2008-12-04 13:50:09 +0100
commit5e6159b7dc5fa7a130ddffe6857f0db6ff360e45 (patch)
tree8ab613a31cea7dc703180b23601d87c5207a25fd /lib/VNDB/Util/LayoutHTML.pm
parentca84685230565f273332ed43bddfe61c5e0464a4 (diff)
Added noindex tag on pages I don't want to see indexed
Including anything related to editing, item histories, etc. No need to have those pages in google, is there?
Diffstat (limited to 'lib/VNDB/Util/LayoutHTML.pm')
-rw-r--r--lib/VNDB/Util/LayoutHTML.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm
index 94491e01..03ff3258 100644
--- a/lib/VNDB/Util/LayoutHTML.pm
+++ b/lib/VNDB/Util/LayoutHTML.pm
@@ -9,7 +9,7 @@ use Exporter 'import';
our @EXPORT = qw|htmlHeader htmlFooter|;
-sub htmlHeader { # %options->{ title, js, search }
+sub htmlHeader { # %options->{ title, js, noindex, search }
my($self, %o) = @_;
# heading
@@ -24,6 +24,7 @@ sub htmlHeader { # %options->{ title, js, search }
script type => 'text/javascript', src => $self->{url_static}.'/f/script.js';
# most browsers don't like a self-closing <script> tag...
end;
+ meta name => 'robots', content => 'noindex, follow', undef if $o{noindex};
end;
body;
div id => 'bgright', ' ';