aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-12 11:03:10 +0300
committerGravatar Vitaly Takmazov2018-09-12 11:03:10 +0300
commite97801561c497021a03317090b82d3c2568b1da7 (patch)
tree736376dae74538e1709b81e642d3d7b91808406f /juick-server/src/main/java/com/juick
parente7bf71dd0fdbccf25a1348c1ff252b54db961b5a (diff)
add Description meta to discover and blog pages
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r--juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java b/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java
index 7388060e..5083fd5a 100644
--- a/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java
+++ b/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java
@@ -140,7 +140,8 @@ public class MessagesWWW {
throw new HttpNotFoundException();
}
- String head = StringUtils.EMPTY;
+ String head = "<meta name=\"Description\" content=\"" + title + "\" />\n";;
+
if (paramBefore > 0 || paramShow != null) {
head = "<meta name=\"robots\" content=\"noindex\"/>";
}
@@ -253,6 +254,7 @@ public class MessagesWWW {
String head = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"@" +
user.getName() + "\" href=\"//rss.juick.com/" + user.getName() + "/blog\"/>";
+ head += "<meta name=\"Description\" content=\"" + title + "\" />\n";
if (paramTag != null && tagService.getTagNoIndex(paramTag.TID)) {
head += "<meta name=\"robots\" content=\"noindex,nofollow\"/>";
} else if (before > 0 || paramShow != null) {