From 11d551f22c8abee4612c7fb0d7cb9c753e515d27 Mon Sep 17 00:00:00 2001 From: zhuzhuyule Date: Sat, 6 Jan 2018 00:15:51 +0800 Subject: [PATCH] clear about duoshuo server --- _config.yml | 15 - gulpfile.coffee | 1 - layout/_layout.swig | 1 - layout/_macro/post.swig | 12 +- layout/_partials/comments.swig | 9 +- layout/_partials/head.swig | 4 - layout/_third-party/comments/disqus.swig | 36 +-- layout/_third-party/comments/duoshuo.swig | 33 -- layout/_third-party/comments/gitment.swig | 4 +- .../_third-party/comments/hypercomments.swig | 2 +- layout/_third-party/comments/index.swig | 1 - layout/_third-party/comments/livere.swig | 2 +- layout/_third-party/comments/youyan.swig | 4 +- layout/_third-party/duoshuo-hot-articles.swig | 5 - layout/post.swig | 2 - scripts/tags/center-quote.js | 1 + scripts/tags/label.js | 84 +++-- .../components/third-party/duoshuo.styl | 290 ------------------ .../components/third-party/third-party.styl | 1 - source/js/src/hook-duoshuo.js | 115 ------- 20 files changed, 87 insertions(+), 535 deletions(-) delete mode 100644 layout/_third-party/comments/duoshuo.swig delete mode 100644 layout/_third-party/duoshuo-hot-articles.swig delete mode 100644 source/css/_common/components/third-party/duoshuo.styl delete mode 100644 source/js/src/hook-duoshuo.js diff --git a/_config.yml b/_config.yml index cdaea2335a..2e39e60420 100644 --- a/_config.yml +++ b/_config.yml @@ -355,9 +355,6 @@ han: false # Baidu Analytics ID #baidu_analytics: -# Duoshuo ShortName -#duoshuo_shortname: - # Disqus disqus: enable: false @@ -429,9 +426,6 @@ gitment: ##uid: Get this uid from http://www.jiathis.com/ #add_this_id: -# Share -#duoshuo_share: true - # NeedMoreShare2 # Dependencies: https://github.com/theme-next/theme-next-needmoreshare2 # See: https://github.com/revir/need-more-share2 @@ -482,15 +476,6 @@ needmoreshare2: # See https://azure.microsoft.com/en-us/services/application-insights/ # application_insights: -# Make duoshuo show UA -# user_id must NOT be null when admin_enable is true! -# you can visit http://dev.duoshuo.com get duoshuo user id. -duoshuo_info: - ua_enable: true - admin_enable: false - user_id: 0 - #admin_nickname: Author - # Post widgets & FB/VK comments settings. # --------------------------------------------------------------- # Facebook SDK Support. diff --git a/gulpfile.coffee b/gulpfile.coffee index c7d706bde1..77970d3be0 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -10,7 +10,6 @@ gulp.task 'lint', -> return gulp.src([ './source/js/src/utils.js', './source/js/src/motion.js', - './source/js/src/hook-duoshuo.js', './source/js/src/algolia-search.js', './source/js/src/bootstrap.js', './source/js/src/post-details.js', diff --git a/layout/_layout.swig b/layout/_layout.swig index 6155424735..f3f68008dc 100644 --- a/layout/_layout.swig +++ b/layout/_layout.swig @@ -32,7 +32,6 @@
{% block content %}{% endblock %}
- {% include '_third-party/duoshuo-hot-articles.swig' %} {% include '_partials/comments.swig' %} {% if theme.sidebar.display !== 'remove' %} diff --git a/layout/_macro/post.swig b/layout/_macro/post.swig index 5c627b0e53..75076e26ae 100644 --- a/layout/_macro/post.swig +++ b/layout/_macro/post.swig @@ -122,17 +122,7 @@ {% endif %} {% if post.comments %} - {% if (theme.duoshuo and theme.duoshuo.shortname) or theme.duoshuo_shortname %} - - - - - - - - {% elseif theme.facebook_comments_plugin.enable %} + {% if theme.facebook_comments_plugin.enable %}