Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2020-05-19 12:28:17 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-05-19 12:28:17 +0300
commitb216dd3b184826c8fea84188a573491eac640c7d (patch)
tree5562cf3921fad7a8be77959989e48aae42e705f1 /layouts/head.html
parent331aab2e833538b551dbc39a667d8cb5a2826094 (diff)
Extract check of production in its own function
Diffstat (limited to 'layouts/head.html')
-rw-r--r--layouts/head.html2
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>