diff --git a/README-zh.md b/README-zh.md index f9ef79e3ece..71e4a31d4f1 100644 --- a/README-zh.md +++ b/README-zh.md @@ -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)) ## 皮肤 diff --git a/README.md b/README.md index 1fe6833c128..1faa8342409 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/_config.yml b/_config.yml index 92637213372..9aac4d9b05c 100644 --- a/_config.yml +++ b/_config.yml @@ -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 ############################## @@ -197,4 +200,4 @@ plugins: - jekyll-feed - jekyll-paginate - jekyll-sitemap - - jemoji + - jemoji \ No newline at end of file diff --git a/_includes/sharing-providers/addthis.html b/_includes/sharing-providers/addthis.html index 2bf3a901e02..f2364d313e4 100644 --- a/_includes/sharing-providers/addthis.html +++ b/_includes/sharing-providers/addthis.html @@ -1,3 +1,9 @@ - - -
+ +{%- assign _SHARING_ADDTHIS_ID = site.sharing.addthis.id -%} + +{%- if _SHARING_ADDTHIS_ID -%} + +
+{%- endif -%} + diff --git a/about.md b/about.md index 88a8ed9b63d..de807f96e53 100644 --- a/about.md +++ b/about.md @@ -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 diff --git a/docs/_config.dev.yml b/docs/_config.dev.yml index ff611769a0a..7769f0def50 100644 --- a/docs/_config.dev.yml +++ b/docs/_config.dev.yml @@ -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 diff --git a/docs/_config.yml b/docs/_config.yml index 52cd817138e..46b090dc8a0 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -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 diff --git a/test/_config.yml b/test/_config.yml index ab67eae6f39..cf7078e5e71 100644 --- a/test/_config.yml +++ b/test/_config.yml @@ -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