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 %}
{% elseif theme.hypercomments_id %} diff --git a/layout/_third-party/comments/disqus.swig b/layout/_third-party/comments/disqus.swig index d73786007..2d14907c6 100644 --- a/layout/_third-party/comments/disqus.swig +++ b/layout/_third-party/comments/disqus.swig @@ -1,33 +1,23 @@ {% if not (theme.duoshuo and theme.duoshuo.shortname) and not theme.duoshuo_shortname %} + {% if theme.disqus.enable %} - {% if theme.disqus_shortname %} + {% if theme.disqus.count %} + + {% endif %} - + {% endif %} - {% endif %} {% endif %}