diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-03-23 16:26:13 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-03-23 16:26:13 +0300 |
commit | e3984c342e48ab8de7d78965c8d5a48174f9d8d9 (patch) | |
tree | c0bae38ff479558784a861b53f332431d6065425 | |
parent | d7c6b0d2e7ebf7688b9ba8822bcda96121151a69 (diff) |
Show comments only on master branch (exclude archives)
-rw-r--r-- | layouts/disqus.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/disqus.html b/layouts/disqus.html index 34a0b578..3c6eff15 100644 --- a/layouts/disqus.html +++ b/layouts/disqus.html @@ -1,4 +1,5 @@ -<% if @item[:comments].nil? && ENV['NANOC_ENV'] == 'production' %> +<%# Show comments only in production and on master branch (hide archives) %> +<% if @item[:comments].nil? && ENV['NANOC_ENV'] == 'production' && ENV['CI_COMMIT_REF_NAME'] == 'master' %> <% unless @item.identifier.to_s.split('/')[1] == 'ce' %> <div class="comments"> <p><em>Leave a comment below if you have any feedback on the documentation. For support and other enquiries, see <a href="https://about.gitlab.com/getting-help/" target="_blank">getting help</a>.</em></p> |