Skip to content

Commit 10dd95e

Browse files
committed
网易云跟帖
1 parent cb197b2 commit 10dd95e

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ description_footer: 能立能达,不怨不尤
3030
# 两种评论插件,选一个就好了,使用自己的 short_name
3131
duoshuo_shortname: #codingted
3232
disqus_shortname: www-codingted-com
33+
netease_gentie: 02e02a1dc85445b392757f6b7c96cccf
3334

3435
# statistic analysis 统计代码
3536
# 百度统计 id,将统计代码替换为自己的百度统计id,即

_includes/comments.html

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
{% if site.duoshuo_shortname %}
2-
<!-- 多说评论框 start -->
3-
<div class="ds-thread" data-thread-key="{{ site.url }}{{ page.url }}" data-title="{{page.title}}" data-url="{{ site.url }}{{ page.url }}"></div>
4-
<!-- 多说评论框 end -->
5-
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
6-
<script type="text/javascript">
7-
var duoshuoQuery = {
8-
short_name: "{{site.duoshuo_shortname}}"
9-
};
10-
(function() {
11-
var ds = document.createElement('script');
12-
ds.type = 'text/javascript';
13-
ds.async = true;
14-
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
15-
ds.charset = 'UTF-8';
16-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
17-
})();
18-
</script>
19-
<!-- 多说公共JS代码 end -->
20-
{% endif %}
21-
221
{% if site.disqus_shortname %}
232
<div id="disqus_thread"></div>
243
<script>
@@ -44,3 +23,16 @@
4423
</script>
4524
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
4625
{% endif %}
26+
27+
{% if site.netease_gentie %}
28+
<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
29+
<script>
30+
var cloudTieConfig = {
31+
url: document.location.href,
32+
sourceId: "",
33+
productKey: "02e02a1dc85445b392757f6b7c96cccf",
34+
target: "cloud-tie-wrapper"
35+
};
36+
</script>
37+
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
38+
{% endif %}

0 commit comments

Comments
 (0)