Search engines: Do not index event lists for specific dates (#23185037) (#4901)

This commit is contained in:
Raphael Michel
2025-03-11 16:09:40 +01:00
committed by GitHub
parent febf32a0a4
commit e2e811ea47
2 changed files with 4 additions and 0 deletions

View File

@@ -15,6 +15,8 @@
{% block custom_header %}
{% if event.settings.meta_noindex %}
<meta name="robots" content="noindex, nofollow">
{% elif "date" in request.GET or "old" in request.GET %}
<meta name="robots" content="noindex, follow">
{% endif %}
<meta property="og:type" content="website" />
{% if social_image %}

View File

@@ -11,6 +11,8 @@
{% block custom_header %}
{% if organizer.settings.meta_noindex %}
<meta name="robots" content="noindex, nofollow">
{% elif "date" in request.GET or "old" in request.GET %}
<meta name="robots" content="noindex, follow">
{% endif %}
<meta property="og:type" content="website" />