|
1 | 1 | <section class="post-comments">
|
2 | 2 |
|
| 3 | + {% if site.comment.uyan %} |
| 4 | + <div id="uyan_frame"></div> |
| 5 | + var uyan_shortname = '{{ site.comment.uyan }}'; |
3 | 6 |
|
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> |
| 7 | + <script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid="+uyan_shortname></script> |
| 8 | + |
| 9 | + {% elsif site.comment.disqus %} |
| 10 | + <div id="disqus_thread"></div> |
6 | 11 | <script>
|
7 |
| - var cloudTieConfig = { |
8 |
| - url: document.location.href, |
9 |
| - sourceId: "", |
10 |
| - productKey: "aa395cf7778f458492060f3f53301b7c", |
11 |
| - target: "cloud-tie-wrapper" |
| 12 | + |
| 13 | + var disqus_config = function () { |
| 14 | + this.page.url = "{{ page.url | prepend: site.baseurl | prepend: site.url }}"; |
| 15 | + this.page.identifier = "{{ page.url }}"; |
12 | 16 | };
|
13 |
| - var yunManualLoad = true; |
14 |
| - Tie.loader("aHR0cHM6Ly9hcGkuZ2VudGllLjE2My5jb20vcGMvbGl2ZXNjcmlwdC5odG1s", true); |
| 17 | + var disqus_shortname = '{{ site.comment.disqus }}'; |
| 18 | + |
| 19 | + (function() { // DON'T EDIT BELOW THIS LINE |
| 20 | + var d = document, s = d.createElement('script'); |
| 21 | + s.src = '//' + disqus_shortname + '.disqus.com/embed.js'; |
| 22 | + s.setAttribute('data-timestamp', +new Date()); |
| 23 | + (d.head || d.body).appendChild(s); |
| 24 | + })(); |
15 | 25 | </script>
|
16 |
| -
|
17 |
| - --> |
18 |
| - |
19 |
| - <!-- UY BEGIN --> |
20 |
| -<div id="uyan_frame"></div> |
21 |
| -<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid=2143225"></script> |
22 |
| -<!-- UY END --> |
| 26 | + <noscript>要查看<a href="http://disqus.com/?ref_noscript"> Disqus </a>评论,请启用 JavaScript</noscript> |
| 27 | + |
| 28 | + {% endif %} |
23 | 29 |
|
24 | 30 | </section>
|
0 commit comments