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/Handler/Discussions.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/Handler/Discussions.pm')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index a719087e..c7dd17d6 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -231,7 +231,7 @@ sub edit { !$num ? 'Reply to '.$t->{title} : 'Edit post'; my $url = !$tid ? "/t/$tag/new" : !$num ? "/t$tid/reply" : "/t$tid.$num/edit"; - $self->htmlHeader(title => $title); + $self->htmlHeader(title => $title, noindex => 1); $self->htmlForm({ frm => $frm, action => $url }, $title => [ [ static => label => 'Username', content => userstr($self->authInfo->{id}, $self->authInfo->{username}) ], !$tid || $num == 1 ? ( @@ -284,7 +284,7 @@ sub tagbrowse { order => $type eq 'an' ? 't.id DESC' : 'tpl.date DESC', ); - $self->htmlHeader(title => $title); + $self->htmlHeader(title => $title, noindex => !@$list); $self->htmlMainTabs($type, $obj, 'disc') if $iid; div class => 'mainbox'; |