Skip to content

Commit abb1424

Browse files
authored
FIX: comments block show if comments present [2].
1 parent d8543f8 commit abb1424

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

layout/_partials/comments.swig

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% if page.comments %}
2-
{% if (theme.duoshuo and theme.duoshuo.shortname) or theme.duoshuo_shortname %}
2+
{% if (theme.duoshuo and theme.duoshuo.shortname) or theme.duoshuo_shortname %}
33
<div class="comments" id="comments">
44
<div class="ds-thread" data-thread-key="{{ page.path }}"
55
data-title="{{ page.title }}" data-url="{{ page.permalink }}">
66
</div>
77
</div>
8-
{% elseif theme.facebook_sdk.enable and theme.facebook_comments_plugin.enable %}
8+
{% elseif theme.facebook_sdk.enable and theme.facebook_comments_plugin.enable %}
99
<div class="comments" id="comments">
1010
<div class="fb-comments"
1111
data-href="{{ page.permalink }}"
@@ -14,11 +14,11 @@
1414
data-colorscheme="{{ theme.facebook_comments_plugin.scheme }}">
1515
</div>
1616
</div>
17-
{% elseif theme.vkontakte_api.enable and theme.vkontakte_api.comments %}
17+
{% elseif theme.vkontakte_api.enable and theme.vkontakte_api.comments %}
1818
<div class="comments" id="comments">
1919
<div id="vk_comments"></div>
2020
</div>
21-
{% elseif theme.disqus.enable %}
21+
{% elseif theme.disqus.enable %}
2222
<div class="comments" id="comments">
2323
<div id="disqus_thread">
2424
<noscript>
@@ -27,25 +27,25 @@
2727
</noscript>
2828
</div>
2929
</div>
30-
{% elseif theme.hypercomments_id %}
30+
{% elseif theme.hypercomments_id %}
3131
<div class="comments" id="comments">
3232
<div id="hypercomments_widget"></div>
3333
</div>
34-
{% elseif theme.youyan_uid %}
34+
{% elseif theme.youyan_uid %}
3535
<div class="comments" id="comments">
3636
<div id="uyan_frame"></div>
3737
</div>
38-
{% elseif theme.livere_uid %}
38+
{% elseif theme.livere_uid %}
3939
<div class="comments" id="comments">
4040
<div id="lv-container" data-id="city" data-uid="{{ theme.livere_uid }}"></div>
4141
</div>
42-
{% elseif theme.changyan.appid and theme.changyan.appkey %}
42+
{% elseif theme.changyan.appid and theme.changyan.appkey %}
4343
<div class="comments" id="comments">
4444
<div id="SOHUCS"></div>
4545
</div>
46-
{% elseif theme.valine.appid and theme.valine.appkey %}
46+
{% elseif theme.valine.appid and theme.valine.appkey %}
4747
<div class="comments" id="comments">
4848
<div id="vcomments"></div>
4949
</div>
50-
{% endif %}
50+
{% endif %}
5151
{% endif %}

0 commit comments

Comments
 (0)