2018-11-21 20:59:14 +01:00
|
|
|
<script>
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
var commentContainer = document.querySelector('#utterances-comments');
|
|
|
|
|
|
|
|
if (!commentContainer) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
var script = document.createElement('script');
|
|
|
|
script.setAttribute('src', 'https://utteranc.es/client.js');
|
|
|
|
script.setAttribute('repo', '{{ site.repository }}');
|
2019-01-08 14:42:19 +01:00
|
|
|
script.setAttribute('issue-term', '{{ site.comments.utterances.issue_term | default: "pathname" }}');
|
2018-11-21 20:59:14 +01:00
|
|
|
script.setAttribute('theme', '{{ site.comments.utterances.theme | default: "github-light" }}');
|
|
|
|
script.setAttribute('crossorigin', 'anonymous');
|
|
|
|
|
|
|
|
commentContainer.appendChild(script);
|
|
|
|
})();
|
2019-01-08 14:42:19 +01:00
|
|
|
</script>
|