Skip to content

Commit

Permalink
Changed way to detect env for robots
Browse files Browse the repository at this point in the history
  • Loading branch information
bymayo authored Jun 4, 2020
1 parent 225783f commit 5156d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/_layout/base.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

{% if craft.app.config.general.devMode %}
{% if craft.app.config.env != 'production' %}
<meta name="robots" content="noindex">
{% endif %}

Expand Down

0 comments on commit 5156d6a

Please sign in to comment.