You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2024/10/30 14:33:19 UTC

(allura) branch gc/8569 created (now e537a4ba5)

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

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


      at e537a4ba5 [#8569] add noindex tag to tracker stats pages and also for /_discuss urls

This branch includes the following new commits:

     new e537a4ba5 [#8569] add noindex tag to tracker stats pages and also for /_discuss urls

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(allura) 01/01: [#8569] add noindex tag to tracker stats pages and also for /_discuss urls

Posted by gc...@apache.org.
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 <gu...@slashdotmedia.com>
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 %}