mirror of
https://github.com/kaka111222333/kaka111222333.github.io.git
synced 2025-12-18 07:44:35 +08:00
替换博客模板
This commit is contained in:
21
_includes/gitalk.html
Normal file
21
_includes/gitalk.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% if site.gitalk.clientID %}
|
||||
<div class="comments">
|
||||
<div id="gitalk-container"></div>
|
||||
<script>
|
||||
const gitalk = new Gitalk({
|
||||
clientID: "{{ site.gitalk.clientID }}",
|
||||
clientSecret: "{{ site.gitalk.clientSecret }}",
|
||||
repo: "{{ site.gitalk.repo }}",
|
||||
owner: "{{ site.gitalk.owner }}",
|
||||
admin: ["{{ site.gitalk.owner }}"],
|
||||
id: window.location.pathname, // Ensure uniqueness and length less than 50
|
||||
distractionFreeMode: false, // Facebook-like distraction free mode
|
||||
title: "{{ page.title }}",
|
||||
language: "zh-CN",
|
||||
|
||||
})
|
||||
|
||||
gitalk.render('gitalk-container')
|
||||
</script>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user