Skip to content

Commit 5cb4eff

Browse files
committed
set comments show or hide
1 parent c4b5b95 commit 5cb4eff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_layouts/post.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ <h2 id="similar_posts">Similar Posts</h2>
6464

6565
{% include previousAndNext.html %}
6666

67-
<h2 id="comments">Comments</h2>
68-
{% include comments.html %}
67+
{{% if page.comments %}}
68+
<h2 id="comments">Comments</h2>
69+
{% include comments.html %}
70+
{{% endif %}}
6971

7072

7173
</div>

0 commit comments

Comments
 (0)