diff options
author | Vitaly Takmazov | 2024-06-18 06:21:44 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-06-18 06:21:44 +0300 |
commit | 5e2cf6c9e7b05403dd19c9e3420780add1113663 (patch) | |
tree | b96f5977bb8d4c80d9d830e4246db570b7d18731 /src | |
parent | 29208f061d673ab3b1a4e0ba6e4e3dd2cb78858d (diff) |
Additional `noindex` headers
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/www/controllers/SignUp.java | 1 | ||||
-rw-r--r-- | src/main/java/com/juick/www/controllers/Site.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/controllers/SignUp.java b/src/main/java/com/juick/www/controllers/SignUp.java index 81017983..dddefef3 100644 --- a/src/main/java/com/juick/www/controllers/SignUp.java +++ b/src/main/java/com/juick/www/controllers/SignUp.java @@ -92,6 +92,7 @@ public class SignUp { model.addAttribute("account", account); model.addAttribute("type", type); model.addAttribute("hash", hash); + model.addAttribute("headers", "<meta name=\"robots\" content=\"noindex\"/>"); return "views/signup"; } diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java index 43a4ebc8..c5074547 100644 --- a/src/main/java/com/juick/www/controllers/Site.java +++ b/src/main/java/com/juick/www/controllers/Site.java @@ -595,7 +595,7 @@ public class Site { fillUserModel(model, visitor, visitor); visitor.setAvatar(webApp.getAvatarWebPath(visitor)); model.addAttribute("title", "Написать"); - model.addAttribute("headers", ""); + model.addAttribute("headers", "<meta name=\"robots\" content=\"noindex\"/>"); model.addAttribute("visitor", visitor); if (body == null) { body = StringUtils.EMPTY; |