diff options
author | Vitaly Takmazov | 2022-06-30 14:07:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-06-30 14:07:11 +0300 |
commit | 7c471d66db9e2ed285e7ce697fe903c83f0c4e5b (patch) | |
tree | 1731eb6cf5ff57e4eb8e72f534f25df3bb4dc9c8 | |
parent | 2d4f5745d678d8708b6bf673b5987386cc45b901 (diff) |
Add `noindex` conditions
-rw-r--r-- | src/main/java/com/juick/www/controllers/Site.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java index 9eb4c917..5f034b86 100644 --- a/src/main/java/com/juick/www/controllers/Site.java +++ b/src/main/java/com/juick/www/controllers/Site.java @@ -147,7 +147,7 @@ public class Site { String head = "<meta name=\"Description\" content=\"" + title + "\" />\n"; - if (paramBefore > 0 || paramShow != null) { + if (paramBefore > 0 || paramShow != null || paramTo > 0 || page > 0 || paramSearch != null) { head = "<meta name=\"robots\" content=\"noindex\"/>"; } model.addAttribute("title", title); |