Skip to content

Commit

Permalink
Add .comments class for all scheme (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtj authored Aug 2, 2019
1 parent a7f8959 commit e9eeea3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ hexo.extend.filter.register('theme_inject', function(injects) {

injects.comment.raw('utteranc', `
{% if page.comments %}
<script src="${config.cdn}"
repo="${config.repo}"
issue-term="${config.pathname}"
theme="${config.theme}"
crossorigin="anonymous"
async>
</script>
<div class="comments">
<script src="${config.cdn}" repo="${config.repo}" issue-term="${config.pathname}" theme="${config.theme}" crossorigin="anonymous" async></script>
</div>
{% endif %}
`);

Expand Down

0 comments on commit e9eeea3

Please sign in to comment.