diff --git a/layout/_widget/comment.ejs b/layout/_widget/comment.ejs index 8ffbf49..316b68b 100644 --- a/layout/_widget/comment.ejs +++ b/layout/_widget/comment.ejs @@ -7,6 +7,9 @@ id:location.pathname, distractionFreeMode:false }) - gitalk.render('gitalk-container') + + if(Boolean('<%= page.comments %>')){ + gitalk.render('gitalk-container') + } <% } %> \ No newline at end of file