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/home.html | |
parent | 331aab2e833538b551dbc39a667d8cb5a2826094 (diff) |
Extract check of production in its own function
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 d4a5636d..b08d4659 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -10,7 +10,7 @@ <%= render '/header.*' %> <%= yield %> <%= render '/docsearch.*' %> - <% if ENV['NANOC_ENV'] == 'production' and ENV['CI_COMMIT_REF_NAME'] == 'master' %> + <% if is_production? and ENV['CI_COMMIT_REF_NAME'] == 'master' %> <%# Add analytics only in production %> <%= render '/analytics.*' %> <% end %> |