Skip to content

Commit

Permalink
fix: add addthis
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Nov 9, 2018
1 parent ea9b3a0 commit 8dd954b
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ TeXt 是针对个人或团队网站、博客、项目、文档等的一款高度
- 附加样式(提示,标签,图片,图标,按钮,栅格等)
- 扩展(音频,视频,幻灯片)
- Markdown 增强([MathJax](https://www.mathjax.org/)[mermaid](https://mermaidjs.github.io/)[chartjs](http://www.chartjs.org/)
- 分享([AddToAny](https://www.addtoany.com/)
- 评论([Disqus](https://disqus.com/), [gitalk](https://gitalk.github.io/)
- 分享([AddToAny](https://www.addtoany.com/)[AddThis](https://www.addthis.com/)
- 评论([Disqus](https://disqus.com/)[Gitalk](https://gitalk.github.io/)
- 阅读量统计([LeanCloud](https://leancloud.cn/)
- 站点统计(Google Analytics)
- 站点统计([Google Analytics](https://analytics.google.com/analytics/web/)
- RSS([jekyll-feed](https://github.com/jekyll/jekyll-feed)

## 皮肤
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ TeXt is a super customizable Jekyll theme for personal site, team site, blog, pr
- Additional styles (alert, tag, image, icon, button, grid, etc)
- Extensions (audios, videos, slides)
- Markdown enhancements ([MathJax](https://www.mathjax.org/), [mermaid](https://mermaidjs.github.io/), [chartjs](http://www.chartjs.org/))
- Sharing ([AddToAny](https://www.addtoany.com/))
- Comments ([Disqus](https://disqus.com/))
- Sharing ([AddToAny](https://www.addtoany.com/), [AddThis](https://www.addthis.com/))
- Comments ([Disqus](https://disqus.com/), [Gitalk](https://gitalk.github.io/))
- Pageview ([LeanCloud](https://leancloud.cn/))
- Analytics (Google Analytics)
- Analytics ([Google Analytics](https://analytics.google.com/analytics/web/))
- RSS ([jekyll-feed](https://github.com/jekyll/jekyll-feed))

## Skins
Expand Down
7 changes: 5 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ sources: # bootcdn (default), unpkg
##############################
sharing:
provider: false # false (default), "addtoany", "addthis"

## AddThis
addthis:
id: ra-5xxxxxxxxxxx
id: # addthis pubid, e.g. ra-5xxxxxxxxxxx


## => Comments
##############################
Expand Down Expand Up @@ -197,4 +200,4 @@ plugins:
- jekyll-feed
- jekyll-paginate
- jekyll-sitemap
- jemoji
- jemoji
12 changes: 9 additions & 3 deletions _includes/sharing-providers/addthis.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!-- Addthis Sharing -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ site.sharing.addthis.id }}"></script>
<div class="addthis_inline_share_toolbox addthis_default_style"></div>
<!-- Addthis BEGIN -->
{%- assign _SHARING_ADDTHIS_ID = site.sharing.addthis.id -%}

{%- if _SHARING_ADDTHIS_ID -%}
<script type="text/javascript"
src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ _SHARING_ADDTHIS_ID }}"></script>
<div class="addthis_inline_share_toolbox addthis_default_style"></div>
{%- endif -%}
<!-- Addthis END -->
6 changes: 3 additions & 3 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ TeXt is a super customizable Jekyll theme for personal site, team site, blog, pr
- Additional styles (alert, tag, image, icon, button, grid, etc)
- Extensions (audios, videos, slides)
- Markdown enhancements ([MathJax](https://www.mathjax.org/), [mermaid](https://mermaidjs.github.io/), [chartjs](http://www.chartjs.org/))
- Sharing ([AddToAny](https://www.addtoany.com/))
- Comments ([Disqus](https://disqus.com/))
- Sharing ([AddToAny](https://www.addtoany.com/), [AddThis](https://www.addthis.com/))
- Comments ([Disqus](https://disqus.com/), [Gitalk](https://gitalk.github.io/))
- Pageview ([LeanCloud](https://leancloud.cn/))
- Analytics (Google Analytics)
- Analytics ([Google Analytics](https://analytics.google.com/analytics/web/))
- RSS ([jekyll-feed](https://github.com/jekyll/jekyll-feed))

## Skins
Expand Down
6 changes: 5 additions & 1 deletion docs/_config.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ sources: unpkg # bootcdn (default), unpkg
## => Sharing
##############################
sharing:
provider: addtoany # false (default), "addtoany"
provider: addtoany # false (default), "addtoany", "addthis"

## AddThis
addthis:
id: # addthis pubid, e.g. ra-5xxxxxxxxxxx


## => Comments
Expand Down
6 changes: 5 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ sources: # bootcdn (default), unpkg
## => Sharing
##############################
sharing:
provider: addtoany # false (default), "addtoany"
provider: addthis # false (default), "addtoany", "addthis"

## AddThis
addthis:
id: ra-5be59ee2486770cb # addthis pubid, e.g. ra-5xxxxxxxxxxx


## => Comments
Expand Down
6 changes: 5 additions & 1 deletion test/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ sources: # bootcdn (default), unpkg
## => Sharing
##############################
sharing:
provider: false # false (default), "addtoany"
provider: false # false (default), "addtoany", "addthis"

## AddThis
addthis:
id: # addthis pubid, e.g. ra-5xxxxxxxxxxx


## => Comments
Expand Down

0 comments on commit 8dd954b

Please sign in to comment.