diff options
author | Yorhel <git@yorhel.nl> | 2008-12-04 13:50:09 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-12-04 13:50:09 +0100 |
commit | 5e6159b7dc5fa7a130ddffe6857f0db6ff360e45 (patch) | |
tree | 8ab613a31cea7dc703180b23601d87c5207a25fd /lib/VNDB/Util/LayoutHTML.pm | |
parent | ca84685230565f273332ed43bddfe61c5e0464a4 (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.pm | 3 |
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', ' '; |