This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch gc/8437
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/gc/8437 by this push:
new 8fc35b373 fixup! [#8437] noindex, follow header for empty svn and git
repositories
8fc35b373 is described below
commit 8fc35b373a6d1c7a1df260ca980d623fc3f9a00f
Author: Guillermo Cruz <[email protected]>
AuthorDate: Thu Jun 9 12:35:09 2022 -0600
fixup! [#8437] noindex, follow header for empty svn and git repositories
---
ForgeDiscussion/forgediscussion/templates/discussionforums/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/ForgeDiscussion/forgediscussion/templates/discussionforums/index.html
b/ForgeDiscussion/forgediscussion/templates/discussionforums/index.html
index d5ee47eb8..dedbbf45a 100644
--- a/ForgeDiscussion/forgediscussion/templates/discussionforums/index.html
+++ b/ForgeDiscussion/forgediscussion/templates/discussionforums/index.html
@@ -22,7 +22,7 @@
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}}{%
endblock %}
{% block head %}
- {% if not forums|length %}
+ {% if forums|length and forums[0].num_topics == 0 %}
<meta name="robots" content="noindex, follow">
{% endif %}
{% endblock %}