🦀 修复gitalk 在非开启页面报错问题

This commit is contained in:
79E 2022-10-01 09:49:46 +08:00
parent 239be7e35f
commit dcded080e9
1 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@
id:location.pathname, id:location.pathname,
distractionFreeMode:false distractionFreeMode:false
}) })
if(Boolean('<%= page.comments %>')){
gitalk.render('gitalk-container') gitalk.render('gitalk-container')
}
</script> </script>
<% } %> <% } %>