2016-03-07 48 views

回答

1

好了,我们需要做的几件事情:

在你的文件的末尾_layouts/default.html我所看到的是:

</div> 
    {% include footer.html %} 
    {% if page.comments %} 
    {% include disqus.html %} 
    {% endif %} 
    </body> 

</div> 
    {% include disqus.html %} 
    {% include footer.html %} 
    </body> 

用于替换该部分

然后,在您的文件_includes/disqus.html上,删除第一行和最后一行:

{% if post.comments %} 
..... 
{% endif %} 

这应该可以完成这项工作。让我知道它是怎么回事,好吗?

希望能有所帮助!

+0

工作。非常感谢。 –

+0

不客气! ;) –