Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix config sample & add no script
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyFor authored and victor-pogor committed Aug 9, 2021
1 parent 6e74224 commit 8d66d72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
[params.page.comment.twikoo]
enable = false
js = "https://cdn.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js"
evnId = "https://xxx.vercel.app"

# Third-party library config
[params.page.library]
Expand Down
5 changes: 4 additions & 1 deletion layouts/partials/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,15 @@
<script src="{{ $twikoo.js }}"></script>
<script>
twikoo.init({
envId: 'https://xxxxx.vercel.app/',
envId: '{{ $twikoo.evnId }}',
el: '#twikoo',
// region: 'ap-guangzhou',
// path: 'window.location.pathname',
})
</script>
<noscript>
Please enable JavaScript to view the comments powered by <a href="https://twikoo.js.org/">Twikoo</a>.
</noscript>
{{- end -}}

</div>
Expand Down

0 comments on commit 8d66d72

Please sign in to comment.