Skip to content

Commit c08ae8b

Browse files
committed
gitalk
1 parent db08a1e commit c08ae8b

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ params:
5959
ShowCodeCopyButtons: true
6060
ShowRssButtonInSectionTermList: true
6161
ShowToc: true
62-
# comments: false
62+
comments: true
6363
# images: ['papermod-cover.png']
6464

6565
homeInfoParams:

layouts/partials/comments.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
2+
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
3+
4+
<div id="gitalk-container"></div>
5+
<script>
6+
const gitalk = new Gitalk({
7+
clientID: '0fec92c94ddd66920d63',
8+
clientSecret: '41faaf0b67785abc53f63d4b60594c48a737450c',
9+
repo: 'idea', // The repository of store comments,
10+
owner: 'ladyrick',
11+
admin: ['ladyrick'],
12+
id: location.pathname, // Ensure uniqueness and length less than 50
13+
distractionFreeMode: false // Facebook-like distraction free mode
14+
})
15+
16+
gitalk.render('gitalk-container');
17+
</script>

0 commit comments

Comments
 (0)