Skip to content

Commit

Permalink
Gitalk
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonLeeeaf committed Oct 6, 2023
1 parent d0d4300 commit 7bb4b76
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 5 deletions.
9 changes: 8 additions & 1 deletion post/Refer/QQ因机器人被限制登录事件/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,22 @@
</script>
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js">
</script>
<!-- crypto-js -->
<script src="../../../static/crypto-js.min.js">
</script>
<script>
function sha256(text) {
return CryptoJS.SHA256(text.toString())
.toString()
}
// 配置 Github 评论
let gitalk = new Gitalk({
clientID: '48fde082bef96b75a347',
clientSecret: '8ca794f3bacc73be35f52822fb8b45b5b5cff7a7',
repo: 'hisuzume-github-io-comment',
owner: 'HiSuzume',
admin: ['HiSuzume'],
id: location.pathname.substr(0, 50),
id: sha256(location.href),
distractionFreeMode: false,
})
gitalk.render('gitalk-render')
Expand Down
9 changes: 8 additions & 1 deletion post/Refer/大型纪录片《股票传奇》/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,22 @@
</script>
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js">
</script>
<!-- crypto-js -->
<script src="../../../static/crypto-js.min.js">
</script>
<script>
function sha256(text) {
return CryptoJS.SHA256(text.toString())
.toString()
}
// 配置 Github 评论
let gitalk = new Gitalk({
clientID: '48fde082bef96b75a347',
clientSecret: '8ca794f3bacc73be35f52822fb8b45b5b5cff7a7',
repo: 'hisuzume-github-io-comment',
owner: 'HiSuzume',
admin: ['HiSuzume'],
id: location.pathname.substr(0, 50),
id: sha256(location.href),
distractionFreeMode: false,
})
gitalk.render('gitalk-render')
Expand Down
9 changes: 8 additions & 1 deletion post/主页/Hello,world/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,22 @@
</script>
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js">
</script>
<!-- crypto-js -->
<script src="../../../static/crypto-js.min.js">
</script>
<script>
function sha256(text) {
return CryptoJS.SHA256(text.toString())
.toString()
}
// 配置 Github 评论
let gitalk = new Gitalk({
clientID: '48fde082bef96b75a347',
clientSecret: '8ca794f3bacc73be35f52822fb8b45b5b5cff7a7',
repo: 'hisuzume-github-io-comment',
owner: 'HiSuzume',
admin: ['HiSuzume'],
id: location.pathname.substr(0, 50),
id: sha256(location.href),
distractionFreeMode: false,
})
gitalk.render('gitalk-render')
Expand Down
9 changes: 8 additions & 1 deletion post/主页/记 MultiType List 的坑/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,22 @@
</script>
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js">
</script>
<!-- crypto-js -->
<script src="../../../static/crypto-js.min.js">
</script>
<script>
function sha256(text) {
return CryptoJS.SHA256(text.toString())
.toString()
}
// 配置 Github 评论
let gitalk = new Gitalk({
clientID: '48fde082bef96b75a347',
clientSecret: '8ca794f3bacc73be35f52822fb8b45b5b5cff7a7',
repo: 'hisuzume-github-io-comment',
owner: 'HiSuzume',
admin: ['HiSuzume'],
id: location.pathname.substr(0, 50),
id: sha256(location.href),
distractionFreeMode: false,
})
gitalk.render('gitalk-render')
Expand Down
9 changes: 8 additions & 1 deletion post/日记/2023.8.3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,22 @@
</script>
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js">
</script>
<!-- crypto-js -->
<script src="../../../static/crypto-js.min.js">
</script>
<script>
function sha256(text) {
return CryptoJS.SHA256(text.toString())
.toString()
}
// 配置 Github 评论
let gitalk = new Gitalk({
clientID: '48fde082bef96b75a347',
clientSecret: '8ca794f3bacc73be35f52822fb8b45b5b5cff7a7',
repo: 'hisuzume-github-io-comment',
owner: 'HiSuzume',
admin: ['HiSuzume'],
id: location.pathname.substr(0, 50),
id: sha256(location.href),
distractionFreeMode: false,
})
gitalk.render('gitalk-render')
Expand Down
1 change: 1 addition & 0 deletions static/crypto-js.min.js

Large diffs are not rendered by default.

0 comments on commit 7bb4b76

Please sign in to comment.