aboutsummaryrefslogtreecommitdiff
path: root/src/java/com
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-01-27 06:08:39 +0700
committerGravatar Ugnich Anton2014-01-27 06:08:39 +0700
commitf1e3d22f610640c9096ad182503ebb3a9f850f2b (patch)
tree22a83efa10194993e11b08c180c8cd9078ca92d9 /src/java/com
parentade66d36ff43112c06b13e484d029724354f7ae4 (diff)
noindex
Diffstat (limited to 'src/java/com')
-rw-r--r--src/java/com/juick/http/www/Home.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/Home.java b/src/java/com/juick/http/www/Home.java
index 6833aebb..029f76ad 100644
--- a/src/java/com/juick/http/www/Home.java
+++ b/src/java/com/juick/http/www/Home.java
@@ -106,6 +106,10 @@ public class Home {
out.println("<div id=\"wrapper\">");
out.println("<div id=\"content\">");
+ if (paramShow == null && paramBefore == 0) {
+ out.println("<!--noindex-->");
+ }
+
if (mids.size() > 0) {
int ad_mid = 0;
if (paramShow == null || paramShow.equals("top") || paramShow.equals("all")) {
@@ -135,6 +139,11 @@ public class Home {
out.println("<p class=\"page\"><a href=\"" + nextpage + "\">Older →</a></p>");
}
+
+ if (paramShow == null && paramBefore == 0) {
+ out.println("<!--/noindex-->");
+ }
+
PageTemplates.pageFooter(request, out, locale, visitor, true);
out.println("</div>");
out.println("</div>"); // wrapper