This is an automated email from the ASF dual-hosted git repository.

gcruz pushed a commit to branch gc/8569
in repository https://gitbox.apache.org/repos/asf/allura.git

commit e537a4ba50b92e815de955d47760f291ffbdca2c
Author: Guillermo Cruz <[email protected]>
AuthorDate: Wed Oct 30 08:33:10 2024 -0600

    [#8569] add noindex tag to tracker stats pages and also for /_discuss urls
---
 Allura/allura/templates/discussion/post.html           | 6 ++++++
 ForgeTracker/forgetracker/templates/tracker/stats.html | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/Allura/allura/templates/discussion/post.html 
b/Allura/allura/templates/discussion/post.html
index 5b015f256..fa32031ee 100644
--- a/Allura/allura/templates/discussion/post.html
+++ b/Allura/allura/templates/discussion/post.html
@@ -18,6 +18,12 @@
 -#}
 {% extends g.theme.master %}
 
+{% block head %}
+    {% if '/_discuss' in request.url %}
+    <meta name="robots" content="noindex, follow"/>
+    {% endif %}
+{% endblock %}
+
 {% block title %}
 {{c.project.name}} / {{c.app.config.options.mount_label}} / 
{{post.thread.subject or '(no subject)'}}
 {% endblock %}
diff --git a/ForgeTracker/forgetracker/templates/tracker/stats.html 
b/ForgeTracker/forgetracker/templates/tracker/stats.html
index 5c8b50967..3cf61905f 100644
--- a/ForgeTracker/forgetracker/templates/tracker/stats.html
+++ b/ForgeTracker/forgetracker/templates/tracker/stats.html
@@ -21,6 +21,10 @@
 {% do g.register_forge_css('css/forge/hilite.css', compress=False) %}
 {% do g.register_app_css('css/tracker.css') %}
 
+{% block head %}
+<meta name="robots" content="noindex, follow"/>
+{% endblock %}
+
 {% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / 
Basic Statistics{% endblock %}
 
 {% block header %}Basic Statistics{% endblock %}

Reply via email to