add commentbox
This commit is contained in:
parent
e95ae5bd77
commit
f1788c87d5
1 changed files with 11 additions and 0 deletions
|
@ -27,3 +27,14 @@ layout: layouts/base.njk
|
|||
</ul>
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
||||
<div class="commentbox"></div>
|
||||
<script src="https://unpkg.com/commentbox.io/dist/commentBox.min.js"></script>
|
||||
<script>
|
||||
var el = document.querySelectorAll('.commentbox')[0];
|
||||
var style = window.getComputedStyle(document.body);
|
||||
console.log(style);
|
||||
commentBox('5745017201098752-proj', {
|
||||
textColor: style.color,
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue