-
Notifications
You must be signed in to change notification settings - Fork 2
/
discussbot.njk
22 lines (20 loc) · 880 Bytes
/
discussbot.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ next_data('discussbot', config.discussbot) }}
<script>
document.addEventListener('page:loaded', () => {
if (!CONFIG.page.comments) return;
NexT.utils.loadComments('.discussbot-container')
.then(() => NexT.utils.getScript('https://comments.app/js/widget.js?3', {
attributes: {
async : true,
'data-comments-app-website': CONFIG.discussbot.site_id,
'data-limit' : CONFIG.discussbot.number,
'data-color' : CONFIG.discussbot.color,
'data-colorful' : CONFIG.discussbot.colorful,
'data-dark' : CONFIG.discussbot.dark,
'dislikes' : CONFIG.discussbot.dislikes,
'outlined' : CONFIG.discussbot.outlined
},
parentNode: document.querySelector('.discussbot-container')
}));
});
</script>