aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-06-30 14:07:11 +0300
committerGravatar Vitaly Takmazov2022-06-30 14:07:11 +0300
commit7c471d66db9e2ed285e7ce697fe903c83f0c4e5b (patch)
tree1731eb6cf5ff57e4eb8e72f534f25df3bb4dc9c8
parent2d4f5745d678d8708b6bf673b5987386cc45b901 (diff)
Add `noindex` conditions
-rw-r--r--src/main/java/com/juick/www/controllers/Site.java2
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);