Skip to content

Commit

Permalink
Remove tinysou and duoshuo_share (theme-next#565)
Browse files Browse the repository at this point in the history
* remove tinysou

* remove duoshuo_share
  • Loading branch information
stevenjoezhang authored Feb 4, 2019
1 parent dbb1d57 commit 948d5f3
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 60 deletions.
6 changes: 3 additions & 3 deletions layout/_layout.swig
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@
{% include '_third-party/search/index.swig' %}
{% include '_third-party/analytics/lean-analytics.swig' %}
{% include '_third-party/analytics/firestore.swig' %}
{% include '_third-party/seo/baidu-push.swig' %}
{% include '_third-party/schedule.swig' %}
{% include '_third-party/math/index.swig' %}
{% include '_third-party/pdf.swig' %}
{% include '_third-party/baidu-push.swig' %}
{% include '_third-party/schedule.swig' %}
{% include '_third-party/needsharebutton.swig' %}
{% include '_third-party/rating.swig' %}
{% include '_third-party/pangu.swig' %}
{% include '_third-party/scroll-cookie.swig' %}
{% include '_third-party/exturl.swig' %}
{% include '_third-party/bookmark.swig' %}
{% include '_third-party/copy-code.swig' %}
{% include '_third-party/pdf.swig' %}
</body>
</html>
8 changes: 4 additions & 4 deletions layout/_macro/post.swig
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@
<span class="post-comments-count fb-comments-count" data-href="{{ post.permalink }}" itemprop="commentCount">0</span>
</a>
</span>
{% elseif theme.disqus.enable and theme.disqus.count %}
{% elif theme.disqus.enable and theme.disqus.count %}
{{ comments() }}
<span class="post-meta-item-text">{{ __('post.comments_count') + __('symbol.colon') }}</span>
<a href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">
<span class="post-comments-count disqus-comment-count" data-disqus-identifier="{{ post.path }}" itemprop="commentCount"></span>
</a>
</span>
{% elseif theme.changyan.enable and theme.changyan.appid and theme.changyan.appkey %}
{% elif theme.changyan.enable and theme.changyan.appid and theme.changyan.appkey %}
{{ comments() }}
{% if is_post() %}
<span class="post-meta-item-text">{{ __('post.comments_count') + __('symbol.colon') }}</span>
Expand All @@ -173,14 +173,14 @@
<span id="url::{{ post.permalink }}" class="cy_cmt_count" data-xid="{{ post.path }}" itemprop="commentCount"></span>
</a>
{% endif %}
{% elseif is_post() and theme.gitment.enable and theme.gitment.mint and theme.gitment.count %}
{% elif is_post() and theme.gitment.enable and theme.gitment.mint and theme.gitment.count %}
{{ comments() }}
<span class="post-meta-item-text">{{ __('post.comments_count') + __('symbol.colon') }}</span>
<a href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">
<span class="post-comments-count gitment-comments-count" data-xid="{{ url_for(post.path) }}" itemprop="commentCount"></span>
</a>
</span>
{% elseif (is_post() or theme.valine.comment_count) and theme.valine.enable and theme.valine.appid and theme.valine.appkey %}
{% elif (is_post() or theme.valine.comment_count) and theme.valine.enable and theme.valine.appid and theme.valine.appkey %}
{{ comments() }}
<span class="post-meta-item-text">{{ __('post.comments_count') + __('symbol.colon') }}</span>
<a href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl">
Expand Down
4 changes: 2 additions & 2 deletions layout/_partials/header/menu.swig
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
{%- endif -%}
{%- endfor %}

{% set hasSearch = theme.swiftype_key || theme.algolia_search.enable || theme.tinysou_Key || theme.local_search.enable %}
{% set hasSearch = theme.swiftype_key || theme.algolia_search.enable || theme.local_search.enable %}
{% if hasSearch %}
<li class="menu-item menu-item-search">
{% if theme.swiftype_key %}
<a href="javascript:;" class="st-search-show-outputs">
{% elseif theme.local_search.enable || theme.algolia_search.enable %}
{% elif theme.local_search.enable || theme.algolia_search.enable %}
<a href="javascript:;" class="popup-trigger">
{% endif %}
{% if theme.menu_settings.icons %}
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions layout/_partials/search/index.swig
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{% if theme.algolia_search.enable %}
{% include '../../_third-party/search/algolia-search/dom.swig' %}
{% include 'algolia-search.swig' %}
{% elseif theme.swiftype_key %}
{% include 'swiftype.swig' %}
{% elseif theme.tinysou_Key %}
{% include 'tinysou.swig' %}
{% elseif theme.local_search.enable %}
{% include 'localsearch.swig' %}
{% endif %}
3 changes: 0 additions & 3 deletions layout/_partials/search/tinysou.swig

This file was deleted.

3 changes: 1 addition & 2 deletions layout/_partials/share/add-this.swig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_inline_share_toolbox">
<script type = "text/javascript" src = "//s7.addthis.com/js/300/addthis_widget.js#pubid={{ theme.add_this_id }}" async = "async" ></script>
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ theme.add_this_id }}" async="async"></script>
</div>
16 changes: 0 additions & 16 deletions layout/_partials/share/duoshuo_share.swig

This file was deleted.

2 changes: 1 addition & 1 deletion layout/_third-party/analytics/growingio.swig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if theme.growingio_analytics %}
<script type='text/javascript'>
<script>
!function(e,t,n,g,i){e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},n=t.createElement("script"),tag=t.getElementsByTagName("script")[0],n.async=1,n.src=('https:'==document.location.protocol?'https://':'http://')+g,tag.parentNode.insertBefore(n,tag)}(window,document,"script","assets.growingio.com/2.1/gio.js","gio");
gio('init','{{theme.growingio_analytics}}', {});
gio('send');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
Expand Down
3 changes: 1 addition & 2 deletions layout/_third-party/search/index.swig
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{% include 'tinysou.swig' %}
{% include 'localsearch.swig' %}
{% include 'algolia-search/assets.swig' %}
{% include 'algolia-search.swig' %}
23 changes: 0 additions & 23 deletions layout/_third-party/search/tinysou.swig

This file was deleted.

0 comments on commit 948d5f3

Please sign in to comment.