Skip to content

Commit b404758

Browse files
添加评论系统
1 parent ba2b59f commit b404758

5 files changed

Lines changed: 37 additions & 1304 deletions

File tree

asset/docsify-apachecn-footer.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var cnzzId = window.$docsify.cnzzId
33
var unRepo = window.$docsify.repo || ''
44
var [un, repo] = unRepo.split('/')
5-
var footer = `
5+
var footer = `
66
<hr/>
77
<div align="center">
88
<p><a href="http://www.apachecn.org/" target="_blank"><font face="KaiTi" size="6" color="red">我们一直在努力</font></a><p>
@@ -12,16 +12,31 @@
1212
<p><a href="https://get.brightdata.com/apachecn" target="_blank"><img src="img/ad/partnerstack.gif" /></a><p>
1313
</div>
1414
<hr/>
15-
<div id="gitalk-container" ></div>
15+
<!-- 来必力City版安装代码 -->
16+
<div id="lv-container" data-id="city" data-uid="MTAyMC81ODA2NC8zNDUyNw==">
17+
<script type="text/javascript">
18+
(function(d, s) {
19+
var j, e = d.getElementsByTagName(s)[0];
20+
21+
if (typeof LivereTower === 'function') { return; }
22+
23+
j = d.createElement(s);
24+
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
25+
j.async = true;
26+
27+
e.parentNode.insertBefore(j, e);
28+
})(document, 'script');
29+
</script>
30+
<noscript> 为正常使用来必力评论功能请激活JavaScript</noscript>
31+
</div>
32+
<!-- City版安装代码已完成 -->
1633
`
1734
var plugin = function(hook) {
1835
hook.afterEach(function(html) {
1936
return html + footer
2037
})
2138
hook.doneEach(function() {
2239
(adsbygoogle = window.adsbygoogle || []).push({})
23-
new Gitalk(window.$docsify.gitalk)
24-
.render(window.$docsify.gitalk.container)
2540
})
2641
}
2742
var plugins = window.$docsify.plugins || []

0 commit comments

Comments
 (0)