Skip to content

Commit

Permalink
remove duoshuo support
Browse files Browse the repository at this point in the history
  • Loading branch information
stiekel committed Jun 4, 2017
1 parent d28788c commit 5a55a05
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
4 changes: 1 addition & 3 deletions README.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,13 @@ social:

## 第三方服务的配置

本主题支持 [Google Analytics](https://www.google.com/analytics/) / [百度统计](http://tongji.baidu.com/web/welcome/login) / [Disqus](https://disqus.com/) / [多说](http://duoshuo.com/) / [友言](http://www.uyan.cc/) / [JiaThis](http://www.jiathis.com/),即可以在主题配置文件中设置,也可以在博客的主配置文件中设置,增加项目如下:
本主题支持 [Google Analytics](https://www.google.com/analytics/) / [百度统计](http://tongji.baidu.com/web/welcome/login) / [Disqus](https://disqus.com/) / [友言](http://www.uyan.cc/) / [JiaThis](http://www.jiathis.com/),即可以在主题配置文件中设置,也可以在博客的主配置文件中设置,增加项目如下:

```yml
# Google analytics
google_analytics:
# Baidu tongji
baidu_analytics:
# Duoshuo
duoshuo_shortname:
# Disqus
disqus_shortname:
# Uyan
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,13 @@ social:

## Third party Service

Random support [Google Analytics](https://www.google.com/analytics/) / [Baidu Tongji](http://tongji.baidu.com/web/welcome/login) / [Disqus](https://disqus.com/) / [Duoshuo](http://duoshuo.com/) / [Uyan](http://www.uyan.cc/) / [JiaThis](http://www.jiathis.com/), You can config these in theme config file or hexo main config file:
Random support [Google Analytics](https://www.google.com/analytics/) / [Baidu Tongji](http://tongji.baidu.com/web/welcome/login) / [Disqus](https://disqus.com/) / [Uyan](http://www.uyan.cc/) / [JiaThis](http://www.jiathis.com/), You can config these in theme config file or hexo main config file:

```yml
# Google analytics
google_analytics:
# Baidu tongji
baidu_analytics:
# Duoshuo
duoshuo_shortname:
# Disqus
disqus_shortname:
# Uyan
Expand Down
2 changes: 0 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ social:
google_analytics:
# Baidu tongji
baidu_analytics:
# Duoshuo
duoshuo_shortname:
# Disqus
disqus_shortname:
# Uyan
Expand Down
6 changes: 0 additions & 6 deletions layout/includes/layout.swig
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
<div id="content-inner">
{# {% autoescape false %}{{ body }}{% endautoescape %} #}
{% block body %}{% endblock %}
{% if page.comments && (theme.duoshuo_shortname || config.duoshuo_shortname) %}
<div class="ds-thread" data-thread-key="{{ page.path }}" data-title="{{ page.title }}" data-url="{{ page.permalink }}"></div>
{% endif %}
{% if page.comments && (config.uyan_id || theme.uyan_id) %}
<div id="uyan_frame"></div>
{% endif %}
Expand Down Expand Up @@ -68,9 +65,6 @@
</div>

</div>
{% if page.comments && (theme.duoshuo_shortname || config.duoshuo_shortname) %}
{% include 'duoshuo.swig' %}
{% endif %}
{% if page.comments && (config.disqus_shortname || theme.disqus_shortname) %}
{% include 'disqus.swig' %}
{% endif %}
Expand Down

0 comments on commit 5a55a05

Please sign in to comment.