amWiki
amWiki copied to clipboard
请问能否整合gitment评论功能?
gitment评论代码插入后一直浮在最上方,不知道应该放在哪里,能否给点提示。
<!-- gitment -->
<div id="container"></div>
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
var gitment = new Gitment({
id: 'location.href', // 可选。默认为 location.href
owner: 'syjsxxjy',
repo: 'gitment-repo',
oauth: {
client_id: 'f2bc55c40bfa09795740',
client_secret: '0629dd98d297397dea22df9d486ec7708b6f74ed',
},
})
gitment.render('container')
</script>
<!-- gitment -->