From 608c7c6203da7b8f7550068ca66b2ec7fbe0f381 Mon Sep 17 00:00:00 2001 From: Seraphim jian Date: Fri, 7 Dec 2012 21:45:33 +0800 Subject: [PATCH] try to add uyan --- _config.yml | 4 ++-- _includes/JB/comments | 4 +++- _includes/JB/comments-providers/uyan | 4 ++++ _layouts/default.html | 16 ++++++++-------- _layouts/post.html | 2 +- draft/2012-05-14-node-js-startup.md | 1 - 6 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 _includes/JB/comments-providers/uyan diff --git a/_config.yml b/_config.yml index b3d3065..59721e4 100644 --- a/_config.yml +++ b/_config.yml @@ -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 : diff --git a/_includes/JB/comments b/_includes/JB/comments index 34bf979..5bcc7f9 100644 --- a/_includes/JB/comments +++ b/_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" %} diff --git a/_includes/JB/comments-providers/uyan b/_includes/JB/comments-providers/uyan new file mode 100644 index 0000000..052da10 --- /dev/null +++ b/_includes/JB/comments-providers/uyan @@ -0,0 +1,4 @@ + +
+ + diff --git a/_layouts/default.html b/_layouts/default.html index df8204e..2635f00 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -162,7 +162,7 @@

关注IT, 专注领域.

Powered by Jekyll. Violet theme designed by PIZn.

@@ -185,13 +185,13 @@

关注IT, 专注领域.

} //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); + //})(); {% endif %} {% if(page.isPlugin) %} diff --git a/_layouts/post.html b/_layouts/post.html index e985db2..3d6ec68 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -33,7 +33,7 @@

{{ page.title }}

{% endif %}
-
+ {% include JB/comments %}
diff --git a/draft/2012-05-14-node-js-startup.md b/draft/2012-05-14-node-js-startup.md index e3ca57d..92f7837 100644 --- a/draft/2012-05-14-node-js-startup.md +++ b/draft/2012-05-14-node-js-startup.md @@ -5,5 +5,4 @@ type: post layout: post --- -#### **First console**