JO
2024-08-13 bf781fe79d3f2babeeaa9dd55e5f4a5da04e9977
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* global NexT, CONFIG */
 
document.addEventListener('page:loaded', () => {
  if (!CONFIG.page.comments) return;
 
  NexT.utils.loadComments('.utterances-container')
    .then(() => NexT.utils.getScript('https://utteranc.es/client.js', {
      attributes: {
        async       : true,
        crossOrigin : 'anonymous',
        'repo'      : CONFIG.utterances.repo,
        'issue-term': CONFIG.utterances.issue_term,
        'theme'     : CONFIG.utterances.theme
      },
      parentNode: document.querySelector('.utterances-container')
    }));
});