Replies: 2 comments
-
utterances 是 JS 加载方式,可以直接引入的。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
<script lang="ts" setup>
import { onMounted } from 'vue'
onMounted(() => {
const utterScript = document.createElement('script')
utterScript.src = 'https://utteranc.es/client.js'
utterScript.async = true
utterScript.crossOrigin = 'anonymous'
utterScript.setAttribute('repo', 'YunYouJun/valaxy')
utterScript.setAttribute('issue-term', 'pathname')
utterScript.setAttribute('label', 'utterances')
utterScript.setAttribute('theme', 'github-light')
const commentContainer = document.querySelector('.comment')
if (commentContainer)
commentContainer.appendChild(utterScript)
})
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如题
之前一直在使用utterances,但目前valaxy框架下并没有对于utterances的评论插件
谢谢!
Beta Was this translation helpful? Give feedback.
All reactions