diff --git a/_config.yml b/_config.yml index 202608027..27313424c 100755 --- a/_config.yml +++ b/_config.yml @@ -292,7 +292,10 @@ mathjax: #duoshuo_shortname: # Disqus -#disqus_shortname: +disqus: + enable: false + shortname: + count: true # Hypercomments #hypercomments_id: diff --git a/layout/_macro/post.swig b/layout/_macro/post.swig index ac7bdb453..3082733ee 100644 --- a/layout/_macro/post.swig +++ b/layout/_macro/post.swig @@ -134,14 +134,15 @@ 0 comments - {% elseif theme.disqus_shortname %} + {% elseif theme.disqus.enable and theme.disqus.count %} - + {% elseif theme.hypercomments_id %} diff --git a/layout/_partials/comments.swig b/layout/_partials/comments.swig index a3f594ae3..3689e05f8 100644 --- a/layout/_partials/comments.swig +++ b/layout/_partials/comments.swig @@ -13,11 +13,11 @@ {% elseif theme.vkontakte_api.enable and theme.vkontakte_api.comments %}
- {% elseif theme.disqus_shortname %} + {% elseif theme.disqus.enable %}