diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-05-19 12:28:17 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-05-19 12:28:17 +0300 |
commit | b216dd3b184826c8fea84188a573491eac640c7d (patch) | |
tree | 5562cf3921fad7a8be77959989e48aae42e705f1 /layouts/head.html | |
parent | 331aab2e833538b551dbc39a667d8cb5a2826094 (diff) |
Extract check of production in its own function
Diffstat (limited to 'layouts/head.html')
-rw-r--r-- | layouts/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/head.html b/layouts/head.html index 4f7a0204..4aa0a16f 100644 --- a/layouts/head.html +++ b/layouts/head.html @@ -32,7 +32,7 @@ <!-- Docsearch https://community.algolia.com/docsearch/ - via CDN --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css"> <!-- end of docsearch --> -<% if ENV['NANOC_ENV'] == 'production' %> +<% if is_production? %> <%# Adds GTM only in production %> <!-- add cookie consent --> <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="36a06ac5-ddb4-4f91-8337-067ad19ad8d5" type="text/javascript"></script> |