评论系统
This commit is contained in:
parent
29ed9f44eb
commit
40fe6d948a
|
@ -93,5 +93,14 @@ function hide_canvas() {
|
||||||
overlay.classList.remove('show')
|
overlay.classList.remove('show')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const gitalk = new Gitalk({
|
||||||
|
clientID: 'a0fe07089fe55e24df4e',
|
||||||
|
clientSecret: '58bc23313fbc2e117a34f024967b6b3caaffc1e9',
|
||||||
|
repo: 'com-lianglianglee-learn', // The repository of store comments,
|
||||||
|
owner: 'lianglianglee-learn',
|
||||||
|
admin: ['lianglianglee-learn'],
|
||||||
|
id: document.title, // Ensure uniqueness and length less than 50
|
||||||
|
distractionFreeMode: false // Facebook-like distraction free mode
|
||||||
|
})
|
||||||
|
|
||||||
|
gitalk.render('gitalk-container')
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<meta http-equiv='content-language' content='zh-cn'>
|
<meta http-equiv='content-language' content='zh-cn'>
|
||||||
<meta name='description' content={{.title}}>
|
<meta name='description' content={{.title}}>
|
||||||
<link rel="icon" href="/static/favicon.png">
|
<link rel="icon" href="/static/favicon.png">
|
||||||
<title >{{.title}} </title>
|
<title>{{.title}} </title>
|
||||||
<!-- Spectre.css framework -->
|
<!-- Spectre.css framework -->
|
||||||
<link rel="stylesheet" href="/static/index.css">
|
<link rel="stylesheet" href="/static/index.css">
|
||||||
<link rel="stylesheet" href="/static/highlight.min.css">
|
<link rel="stylesheet" href="/static/highlight.min.css">
|
||||||
|
@ -18,6 +18,8 @@
|
||||||
<meta name="generator" content="Hexo 4.2.0">
|
<meta name="generator" content="Hexo 4.2.0">
|
||||||
<script async defer data-website-id="83e5d5db-9d06-40e3-b780-cbae722fdf8c"
|
<script async defer data-website-id="83e5d5db-9d06-40e3-b780-cbae722fdf8c"
|
||||||
src="http://analyze.lianglianglee.com/umami.js"></script>
|
src="http://analyze.lianglianglee.com/umami.js"></script>
|
||||||
|
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
|
||||||
|
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -37,7 +39,7 @@
|
||||||
<ul class="uncollapsible">
|
<ul class="uncollapsible">
|
||||||
{{range $i, $v := .list}}
|
{{range $i, $v := .list}}
|
||||||
<li>
|
<li>
|
||||||
<a class ="menu-item" id="{{$v.FileName}}" href="{{$v.FilePath}}">{{$v.FileName}}</a>
|
<a class="menu-item" id="{{$v.FileName}}" href="{{$v.FilePath}}">{{$v.FileName}}</a>
|
||||||
</li>
|
</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
<li><a href="/assets/捐赠.md">捐赠</a></li>
|
<li><a href="/assets/捐赠.md">捐赠</a></li>
|
||||||
|
@ -73,13 +75,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div id="prePage" style="float: left">
|
<div id="prePage" style="float: left">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="nextPage" style="float: right">
|
<div id="nextPage" style="float: right">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="gitalk-container"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue