diff --git a/districts/templates/districts/base.html b/districts/templates/districts/base.html index e2d2c8ec83625f111b98b7f87d0fa8b86cc55854..2cfe14472efd2f3f6e4a1b895d10178300257f42 100644 --- a/districts/templates/districts/base.html +++ b/districts/templates/districts/base.html @@ -22,6 +22,9 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> {% meta_tags %} + {% if settings.MAJAK_ENV == "test" %} + <meta name="robots" content="noindex, nofollow"> + {% endif %} <!-- Favicon --> {% include "shared/favicon_snippet.html" %} diff --git a/home/templates/home/base.html b/home/templates/home/base.html index 7a2aa0501adac0dfedc27c6c25227e2e8d605b2c..b5523e1efc01786b490a80881493d57a3b816bf9 100644 --- a/home/templates/home/base.html +++ b/home/templates/home/base.html @@ -23,6 +23,9 @@ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content="{{ page.search_description }}"> <meta name="author" content="PirĂ¡ti"> + {% if settings.MAJAK_ENV == "test" %} + <meta name="robots" content="noindex, nofollow"> + {% endif %} <title>{{ page.title }}</title> <!-- Favicon --> diff --git a/senat_campaign/templates/senat_campaign/base.html b/senat_campaign/templates/senat_campaign/base.html index 7bf3ba08469aa890443b1b0921fa5669f9b983de..464fbe77ba6ecf50f1144100564095fcbaff78df 100644 --- a/senat_campaign/templates/senat_campaign/base.html +++ b/senat_campaign/templates/senat_campaign/base.html @@ -22,6 +22,9 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> {% meta_tags %} + {% if settings.MAJAK_ENV == "test" %} + <meta name="robots" content="noindex, nofollow"> + {% endif %} <!-- Favicon --> {% include "shared/favicon_snippet.html" %} diff --git a/senate/templates/senate/base.html b/senate/templates/senate/base.html index 8dc51508ff89d01fc61e67c1f98f7770191702a2..9ac34114c3b233bf2ca697668fff7f027adda087 100644 --- a/senate/templates/senate/base.html +++ b/senate/templates/senate/base.html @@ -5,6 +5,9 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0, shrink-to-fit=no"> {% meta_tags %} + {% if settings.MAJAK_ENV == "test" %} + <meta name="robots" content="noindex, nofollow"> + {% endif %} <!-- Favicon --> {% include "shared/favicon_snippet.html" %}