Skip to content

Commit

Permalink
try to add uyan
Browse files Browse the repository at this point in the history
  • Loading branch information
seraphimhj committed Dec 7, 2012
1 parent 2db8486 commit 608c7c6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Expand Up @@ -84,9 +84,9 @@ JB :
# Settings for comments helper
# Set 'provider' to the comment provider you want to use.
# Set 'provider' to false to turn commenting off globally.
# added weibo
# added weibo, uyan
comments :
provider : disqus
provider : uyan
disqus :
short_name : hjian
livefyre :
Expand Down
4 changes: 3 additions & 1 deletion _includes/JB/comments
@@ -1,8 +1,10 @@
{% if site.JB.comments.provider and page.comments != false %}
{% if site.JB.comments.provider %}

{% case site.JB.comments.provider %}
{% when "weibo" %}
{% include JB/comments-providers/weibo %}
{% when "uyan" %}
{% include JB/comments-providers/uyan %}
{% when "disqus" %}
{% include JB/comments-providers/disqus %}
{% when "livefyre" %}
Expand Down
4 changes: 4 additions & 0 deletions _includes/JB/comments-providers/uyan
@@ -0,0 +1,4 @@
<!-- UY BEGIN -->
<div id="uyan_frame"></div>
<script type="text/javascript" id="UYScript" src="http://v1.uyan.cc/js/iframe.js?UYUserId=3530" async=""></script>
<!-- UY END -->
16 changes: 8 additions & 8 deletions _layouts/default.html
Expand Up @@ -162,7 +162,7 @@ <h2>关注IT, 专注领域.</h2>
<p>Powered by <a href="http://jekyllrb.com" target="_blank" rel="nofollow">Jekyll</a>. Violet theme designed by <a href="http://www.pizn.me" rel="nofollow">PIZn</a>.<span class="v-tj"><script src="http://s95.cnzz.com/stat.php?id=4763527&web_id=4763527&show=pic" language="JavaScript"></script></span></p>
</section>
<section class="ui-grid-4 violet-copyright">
<p>Copyright © 2012 Seraphim All rights reserved.</p>
<p>Copyright © 2010-2012 Seraphim All rights reserved.</p>
</section>
</div>
</div>
Expand All @@ -185,13 +185,13 @@ <h2>关注IT, 专注领域.</h2>
}

//disqus
var disqus_shortname = 'hjian';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
//var disqus_shortname = 'hjian';
//(function() {
// var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
// dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
// (document.getElementsByTagName('head')[0] ||
// document.getElementsByTagName('body')[0]).appendChild(dsq);
//})();
</script>
{% endif %}
{% if(page.isPlugin) %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Expand Up @@ -33,7 +33,7 @@ <h1 class="title">{{ page.title }}</h1>
{% endif %}
</nav>
<div class="violet-comment">
<div id="disqus_thread"></div>
{% include JB/comments %}
</div><!-- //violet-comment -->
</div>
<div class="ui-grid-6 v-post-aside">
Expand Down
1 change: 0 additions & 1 deletion draft/2012-05-14-node-js-startup.md
Expand Up @@ -5,5 +5,4 @@ type: post
layout: post
---

#### **First console**

0 comments on commit 608c7c6

Please sign in to comment.