Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbe468ad

Browse files
committed
Globally disable Disqus comments <div> when shortname is omitted
1 parent658eb76 commitbe468ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎_layouts/page.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1 class="entry-title">{{ page.title }}</h1>
4242
{% if page.share != false %}{% include social-share.html %}{% endif %}
4343
</footer>
4444
</div><!-- /.entry-content -->
45-
{% if page.comments != false %}<sectionid="disqus_thread"></section><!-- /#disqus_thread -->{% endif %}
45+
{% if page.comments != falseand site.disqus_shortname%}<sectionid="disqus_thread"></section><!-- /#disqus_thread -->{% endif %}
4646
</article>
4747
</div><!-- /#main -->
4848

‎_layouts/post.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2><span class="entry-date date published"><time datetime="{{ page.date | date_
4848
{% if page.share != false %}{% include social-share.html %}{% endif %}
4949
</footer>
5050
</div><!-- /.entry-content -->
51-
{% if page.comments != false %}<sectionid="disqus_thread"></section><!-- /#disqus_thread -->{% endif %}
51+
{% if page.comments != falseand site.disqus_shortname%}<sectionid="disqus_thread"></section><!-- /#disqus_thread -->{% endif %}
5252
{% if site.related_posts.size> 0 %}{% include read-more.html %}{% endif %}
5353
</article>
5454
</div><!-- /#main -->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp