Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbridge committed Oct 6, 2023
2 parents bd24a2c + 9c7a779 commit b178dbe
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 69.8 (2023-10-06)

Compare: <https://git.torchbox.com/buckinghamshire-council/bc/compare/69.7...69.8>

- [Fixes for Google spam issue](https://git.torchbox.com/buckinghamshire-council/bc/-/merge_requests/665)

## 69.7 (2023-09-21)

Compare: <https://git.torchbox.com/buckinghamshire-council/bc/compare/69.6...69.7>
Expand Down
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ FROM backend as dev
# Swap user, so the following tasks can be run as root
USER root

# Update stretch repositories
RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \
-e 's|security.debian.org|archive.debian.org/|g' \
-e '/stretch-updates/d' /etc/apt/sources.list
# Update apt repositories
RUN apt-get update --yes --quiet

# Install node (Keep the version in sync with the node container above)
Expand Down
2 changes: 1 addition & 1 deletion bc/project_styleguide/templates/patterns/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
search engines crawling admin domains.:8000
This ignores ports for simplicity.
{% endcomment %}
{% if request.get_host != current_site.hostname or request.get_host in NONINDEXED_HOSTS %}
{% if request.get_host != current_site.hostname or request.get_host in NONINDEXED_HOSTS or SEO_NOINDEX %}
<meta name="robots" content="noindex" />
{% endif %}

Expand Down
1 change: 1 addition & 0 deletions bc/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def get(self, request, *args, **kwargs):
"no_result_text": no_result_text,
"search_query": search_query,
"search_results": search_results,
"SEO_NOINDEX": True,
}
)

Expand Down
1 change: 0 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
User-Agent: *
Disallow: /search/
Allow: /

0 comments on commit b178dbe

Please sign in to comment.