Skip to content

Commit a7962ea

Browse files
authored
Update twikoo.njk
1 parent e54c945 commit a7962ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

twikoo.njk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{{ next_data('twikoo', config.twikoo, {
2-
el: '#twikoo-comments',
3-
jsUrl: 'https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js'
2+
el: '#twikoo-comments'
43
}) }}
54
<script>
65
document.addEventListener('page:loaded', () => {
76
NexT.utils.loadComments(CONFIG.twikoo.el)
87
.then(() => NexT.utils.getScript(
9-
CONFIG.twikoo.jsUrl,
8+
CONFIG.twikoo.jsUrl || 'https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js',
109
{ condition: window.twikoo }
1110
))
1211
.then(() => {

0 commit comments

Comments
 (0)