diff options
author | Yorhel <git@yorhel.nl> | 2020-02-13 20:03:03 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-02-13 20:03:19 +0100 |
commit | 17d104547f5faa287f53c7253ab2917db5820794 (patch) | |
tree | cd6425f6702219cb66da60093bcc3c015dae4319 | |
parent | 550628e21fdcaa85fce001024d13c7ff768e3465 (diff) |
HTML.pm: Force noindex tags on pages with a ?view= parameter
Wouldn't want google to link to spoiler pages.
-rw-r--r-- | lib/VNWeb/HTML.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm index 5f08a1cb..d4bffb4c 100644 --- a/lib/VNWeb/HTML.pm +++ b/lib/VNWeb/HTML.pm @@ -164,7 +164,7 @@ sub _head_ { link_ rel => 'alternate', type => 'application/atom+xml', href => "/feeds/posts.atom", title => 'Recent Posts'; } meta_ name => 'csrf-token', content => auth->csrftoken; - meta_ name => 'robots', content => 'noindex' if !$o->{index}; + meta_ name => 'robots', content => 'noindex' if !$o->{index} || tuwf->reqGet('view'); # Opengraph metadata if($o->{og}) { |