diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2019-10-25 10:17:26 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2019-10-25 10:17:26 +0300 |
commit | 7b0ff088308a20d5191021edf912438fd71fb0c0 (patch) | |
tree | 98769f869be82bc512eff3bba9dcb1aeca7666e8 /layouts/home.html | |
parent | f3851a77809d8cbcf735eefa0c80573c120b2e73 (diff) |
Do not load any 3rd party analytics in single versions
Diffstat (limited to 'layouts/home.html')
-rw-r--r-- | layouts/home.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/home.html b/layouts/home.html index f1d770be..9daafb06 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -24,7 +24,7 @@ <%= yield %> <%= render '/footer.*' %> <%= render '/docsearch.*' %> - <% if ENV['NANOC_ENV'] == 'production' %> + <% if ENV['NANOC_ENV'] == 'production' and ENV['CI_COMMIT_REF_NAME'] == 'master' %> <%# Add analytics only in production %> <%= render '/analytics.*' %> <% end %> |