parent
e11120f479
commit
a3a971e774
|
@ -2,16 +2,16 @@
|
||||||
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
|
<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 src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var gitment = new Gitment({
|
if (document.getElementById('comments')) {
|
||||||
owner: '<%= theme.comment.gitment.owner %>',
|
var gitment = new Gitment({
|
||||||
repo: '<%= theme.comment.gitment.repo %>',
|
owner: '<%= theme.comment.gitment.owner %>',
|
||||||
oauth: {
|
repo: '<%= theme.comment.gitment.repo %>',
|
||||||
client_id: '<%= theme.comment.gitment.client_id %>',
|
oauth: {
|
||||||
client_secret: '<%= theme.comment.gitment.client_secret %>',
|
client_id: '<%= theme.comment.gitment.client_id %>',
|
||||||
},
|
client_secret: '<%= theme.comment.gitment.client_secret %>',
|
||||||
})
|
},
|
||||||
gitment.render('commentContainer')
|
})
|
||||||
|
gitment.render('comments')
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<% } else { %>
|
|
||||||
<div id="commentContainer"></div>
|
|
||||||
<% } %>
|
<% } %>
|
Loading…
Reference in New Issue