Skip to content

Commit

Permalink
feat: support twikoo (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
WingLim authored Apr 14, 2022
1 parent 6194cdb commit 92e052d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions layouts/partials/comments/provider/twikoo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div id="tcomment"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js"></script>
<script>
twikoo.init({
envId: '{{ .Site.Params.comments.twikoo.id }}',
el: '#tcomment',
region: '{{ .Site.Params.comments.twikoo.region | default "ap-shanghai" }}',
path: '{{ .Site.Params.comments.twikoo.path | default "window.location.pathname" }}',
lang: '{{ .Site.Params.comments.twikoo.lang | default "zh-CN" }}',
})
</script>

0 comments on commit 92e052d

Please sign in to comment.