|
1 | 1 | <section class="post-comments"> |
2 | 2 |
|
3 | | - {% if site.comment.disqus %} |
4 | | - <div id="disqus_thread"></div> |
| 3 | + |
| 4 | + <div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div> |
| 5 | + <script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script> |
5 | 6 | <script> |
6 | | - |
7 | | - var disqus_config = function () { |
8 | | - this.page.url = "{{ page.url | prepend: site.baseurl | prepend: site.url }}"; |
9 | | - this.page.identifier = "{{ page.url }}"; |
| 7 | + var cloudTieConfig = { |
| 8 | + url: document.location.href, |
| 9 | + sourceId: "", |
| 10 | + productKey: "aa395cf7778f458492060f3f53301b7c", |
| 11 | + target: "cloud-tie-wrapper" |
10 | 12 | }; |
11 | | - |
12 | | - var disqus_shortname = '{{ site.comment.disqus }}'; |
13 | | - |
14 | | - (function() { // DON'T EDIT BELOW THIS LINE |
15 | | - var d = document, s = d.createElement('script'); |
16 | | - s.src = '//' + disqus_shortname + '.disqus.com/embed.js'; |
17 | | - s.setAttribute('data-timestamp', +new Date()); |
18 | | - (d.head || d.body).appendChild(s); |
19 | | - })(); |
| 13 | + var yunManualLoad = true; |
| 14 | + Tie.loader("aHR0cHM6Ly9hcGkuZ2VudGllLjE2My5jb20vcGMvbGl2ZXNjcmlwdC5odG1s", true); |
20 | 15 | </script> |
21 | | - <noscript>要查看<a href="http://disqus.com/?ref_noscript"> Disqus </a>评论,请启用 JavaScript</noscript> |
22 | | - |
23 | | - {% elsif site.comment.duoshuo %} |
24 | | - <div class="ds-thread" data-thread-key="{{ page.url }}" data-title="{{ page.title }}" data-url="{{ page.url | prepend: site.baseurl | prepend: site.url }}"></div> |
25 | 16 |
|
26 | | - <script type="text/javascript"> |
27 | | - var duoshuoQuery = {short_name:"{{ site.comment.duoshuo }}"}; |
28 | | - (function() { |
29 | | - var ds = document.createElement('script'); |
30 | | - ds.type = 'text/javascript';ds.async = true; |
31 | | - ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js'; |
32 | | - ds.charset = 'UTF-8'; |
33 | | - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds); |
34 | | - })(); |
35 | | - </script> |
36 | | - {% endif %} |
37 | | - |
38 | | - |
| 17 | + |
39 | 18 |
|
40 | 19 | </section> |
0 commit comments