Skip to content

Commit

Permalink
FIX: comments block show if comments present [2].
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-nginx committed Sep 28, 2017
1 parent d8543f8 commit abb1424
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions layout/_partials/comments.swig
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{% if page.comments %}
{% if (theme.duoshuo and theme.duoshuo.shortname) or theme.duoshuo_shortname %}
{% if (theme.duoshuo and theme.duoshuo.shortname) or theme.duoshuo_shortname %}
<div class="comments" id="comments">
<div class="ds-thread" data-thread-key="{{ page.path }}"
data-title="{{ page.title }}" data-url="{{ page.permalink }}">
</div>
</div>
{% elseif theme.facebook_sdk.enable and theme.facebook_comments_plugin.enable %}
{% elseif theme.facebook_sdk.enable and theme.facebook_comments_plugin.enable %}
<div class="comments" id="comments">
<div class="fb-comments"
data-href="{{ page.permalink }}"
Expand All @@ -14,11 +14,11 @@
data-colorscheme="{{ theme.facebook_comments_plugin.scheme }}">
</div>
</div>
{% elseif theme.vkontakte_api.enable and theme.vkontakte_api.comments %}
{% elseif theme.vkontakte_api.enable and theme.vkontakte_api.comments %}
<div class="comments" id="comments">
<div id="vk_comments"></div>
</div>
{% elseif theme.disqus.enable %}
{% elseif theme.disqus.enable %}
<div class="comments" id="comments">
<div id="disqus_thread">
<noscript>
Expand All @@ -27,25 +27,25 @@
</noscript>
</div>
</div>
{% elseif theme.hypercomments_id %}
{% elseif theme.hypercomments_id %}
<div class="comments" id="comments">
<div id="hypercomments_widget"></div>
</div>
{% elseif theme.youyan_uid %}
{% elseif theme.youyan_uid %}
<div class="comments" id="comments">
<div id="uyan_frame"></div>
</div>
{% elseif theme.livere_uid %}
{% elseif theme.livere_uid %}
<div class="comments" id="comments">
<div id="lv-container" data-id="city" data-uid="{{ theme.livere_uid }}"></div>
</div>
{% elseif theme.changyan.appid and theme.changyan.appkey %}
{% elseif theme.changyan.appid and theme.changyan.appkey %}
<div class="comments" id="comments">
<div id="SOHUCS"></div>
</div>
{% elseif theme.valine.appid and theme.valine.appkey %}
{% elseif theme.valine.appid and theme.valine.appkey %}
<div class="comments" id="comments">
<div id="vcomments"></div>
</div>
{% endif %}
{% endif %}
{% endif %}

0 comments on commit abb1424

Please sign in to comment.