This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 24005d74e [#8521] noindex on empty tickets pages
24005d74e is described below
commit 24005d74e04445453e6b8dbc0627b2ccfaa8d1f9
Author: Guillermo Cruz <[email protected]>
AuthorDate: Thu Sep 28 11:34:00 2023 -0600
[#8521] noindex on empty tickets pages
---
ForgeTracker/forgetracker/templates/tracker/index.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ForgeTracker/forgetracker/templates/tracker/index.html
b/ForgeTracker/forgetracker/templates/tracker/index.html
index 7e15113ef..8466dbe85 100644
--- a/ForgeTracker/forgetracker/templates/tracker/index.html
+++ b/ForgeTracker/forgetracker/templates/tracker/index.html
@@ -23,6 +23,9 @@
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}}{%
endblock %}
{% block head %}
+ {% if count == 0 %}
+ <meta name="robots" content="noindex, follow">
+ {% endif %}
<link rel="alternate" type="application/rss+xml" title="RSS"
href="feed.rss"/>
<link rel="alternate" type="application/atom+xml" title="Atom"
href="feed.atom"/>
{{ lib.canonical_tag(page) }}