From 2b21bdf584f1b1ecbb59d0f6f1f04d7befaabb85 Mon Sep 17 00:00:00 2001 From: Dillon Date: Sun, 8 May 2022 02:59:19 +0800 Subject: [PATCH] chore(lib): update sharer.js 0.4.0 -> 0.5.1 --- README.md | 2 +- README.zh-cn.md | 2 +- assets/data/cdn/jsdelivr.yml | 4 +-- assets/lib/sharer/sharer.min.js | 2 +- config.toml | 4 --- exampleSite/config.toml | 4 --- exampleSite/content/about/index.en.md | 2 +- exampleSite/content/about/index.zh-cn.md | 2 +- layouts/partials/plugin/share.html | 46 +++++------------------- 9 files changed, 16 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index 9185190c..6a846b28 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ I hope you will LoveIt ❤️! * **Gravatar** supported by [Gravatar](https://gravatar.com) * Local **Avatar** supported * Up to **64** social links supported -* Up to **28** share sites supported +* Up to **24** share sites supported * **Disqus** comment system supported by [Disqus](https://disqus.com) * **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk) * **Valine** comment system supported by [Valine](https://valine.js.org/) diff --git a/README.zh-cn.md b/README.zh-cn.md index 778b09d4..95b32eee 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -78,7 +78,7 @@ * 支持 **[Gravatar](https://gravatar.com)** 头像 * 支持本地**头像** * 支持多达 **64** 种社交链接 -* 支持多达 **28** 种网站分享 +* 支持多达 **24** 种网站分享 * 支持 **[Disqus](https://disqus.com)** 评论系统 * 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统 * 支持 **[Valine](https://valine.js.org/)** 评论系统 diff --git a/assets/data/cdn/jsdelivr.yml b/assets/data/cdn/jsdelivr.yml index 81fdae48..1d9d32f3 100644 --- a/assets/data/cdn/jsdelivr.yml +++ b/assets/data/cdn/jsdelivr.yml @@ -33,8 +33,8 @@ libFiles: lightgalleryZoomJS: lg-zoom.js@1.2.0/dist/lg-zoom.min.js # clipboard.js@2.0.11 https://github.com/zenorocha/clipboard.js clipboardJS: clipboard@2.0.11/dist/clipboard.min.js - # sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js - sharerJS: sharer.js@0.4.0/sharer.min.js + # sharer.js@0.5.1 https://github.com/ellisonleao/sharer.js + sharerJS: sharer.js@0.5.1/sharer.min.js # typeit@7.0.4 https://github.com/alexmacarthur/typeit typeitJS: typeit@7.0.4/dist/typeit.min.js # katex@0.15.3 https://katex.org/ diff --git a/assets/lib/sharer/sharer.min.js b/assets/lib/sharer/sharer.min.js index 5152d5e5..6c10e588 100644 --- a/assets/lib/sharer/sharer.min.js +++ b/assets/lib/sharer/sharer.min.js @@ -1 +1 @@ -(function(g,r){"use strict";var s=function(t){this.elem=t};s.init=function(){var t=r.querySelectorAll("[data-sharer]"),e,a=t.length;for(e=0;e0?"?":"";for(r=0;r0?"?":"";for(r=0;r {{- end -}} - {{- /* 016: Digg */ -}} - {{- if $share.Digg -}} - - {{- dict "Class" "fab fa-digg fa-fw" | partial "plugin/icon.html" -}} - - {{- end -}} - - {{- /* 017: StumbleUpon */ -}} - {{- if $share.Stumbleupon -}} - - {{- dict "Class" "fab fa-stumbleupon fa-fw" | partial "plugin/icon.html" -}} - - {{- end -}} - - {{- /* 018: Flipboard */ -}} + {{- /* 016: Flipboard */ -}} {{- if $share.Flipboard -}} {{- dict "Class" "fab fa-flipboard fa-fw" | partial "plugin/icon.html" -}} {{- end -}} - {{- /* 019: 微博 */ -}} + {{- /* 017: 微博 */ -}} {{- if $share.Weibo -}} {{- dict "Class" "fab fa-weibo fa-fw" | partial "plugin/icon.html" -}} {{- end -}} - {{- /* 020: 人人 */ -}} - {{- if $share.Renren -}} - - {{- dict "Class" "fab fa-renren fa-fw" | partial "plugin/icon.html" -}} - - {{- end -}} - - {{- /* 021: Myspace */ -}} - {{- if $share.Myspace -}} - - {{- dict "Simpleicons" "myspace" "Prefix" (.Scratch.Get "cdn" | default dict).simpleIconsPrefix | partial "plugin/icon.html" -}} - - {{- end -}} - - {{- /* 022: Blogger */ -}} + {{- /* 018: Blogger */ -}} {{- if $share.Blogger -}} {{- dict "Class" "fab fa-blogger fa-fw" | partial "plugin/icon.html" -}} {{- end -}} - {{- /* 023: 百度 */ -}} + {{- /* 019: 百度 */ -}} {{- if $share.Baidu -}} {{- dict "Simpleicons" "baidu" "Prefix" (.Scratch.Get "cdn" | default dict).simpleIconsPrefix | partial "plugin/icon.html" -}} {{- end -}} - {{- /* 024: OK.RU */ -}} + {{- /* 020: OK.RU */ -}} {{- if $share.Odnoklassniki -}} {{- dict "Class" "fab fa-odnoklassniki fa-fw" | partial "plugin/icon.html" -}} {{- end -}} - {{- /* 025: Evernote */ -}} + {{- /* 021: Evernote */ -}} {{- if $share.Evernote -}} {{- dict "Class" "fab fa-evernote fa-fw" | partial "plugin/icon.html" -}} {{- end -}} - {{- /* 026: Skype */ -}} + {{- /* 022: Skype */ -}} {{- if $share.Skype -}} {{- dict "Class" "fab fa-skype fa-fw" | partial "plugin/icon.html" -}} {{- end -}} - {{- /* 027: Trello */ -}} + {{- /* 023: Trello */ -}} {{- if $share.Trello -}} {{- dict "Class" "fab fa-trello fa-fw" | partial "plugin/icon.html" -}} {{- end -}} - {{- /* 028: Mix */ -}} + {{- /* 024: Mix */ -}} {{- if $share.Mix -}} {{- dict "Class" "fab fa-mix fa-fw" | partial "plugin/icon.html" -}}