We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e54c945 commit a7962eaCopy full SHA for a7962ea
twikoo.njk
@@ -1,12 +1,11 @@
1
{{ next_data('twikoo', config.twikoo, {
2
- el: '#twikoo-comments',
3
- jsUrl: 'https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js'
+ el: '#twikoo-comments'
4
}) }}
5
<script>
6
document.addEventListener('page:loaded', () => {
7
NexT.utils.loadComments(CONFIG.twikoo.el)
8
.then(() => NexT.utils.getScript(
9
- CONFIG.twikoo.jsUrl,
+ CONFIG.twikoo.jsUrl || 'https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js',
10
{ condition: window.twikoo }
11
))
12
.then(() => {
0 commit comments