{{- $scratch := .Scratch.Get "scratch" -}} {{- if ne .Site.Params.share.enable false | and (ne .Params.share.enable false) -}} {{- $scratch.Set "share" true -}} {{- /* 001: Twitter */ -}} {{- if .Params.Share.Twitter | default .Site.Params.Share.Twitter | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-twitter fa-fw") -}} {{- end -}} {{- /* 002: Facebook */ -}} {{- if .Params.Share.Facebook | default .Site.Params.Share.Facebook | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-facebook-square fa-fw") -}} {{- end -}} {{- /* 003: Linkedin */ -}} {{- if .Params.Share.Linkedin | default .Site.Params.Share.Linkedin | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-linkedin fa-fw") -}} {{- end -}} {{- /* 004: WhatsApp */ -}} {{- if .Params.Share.Whatsapp | default .Site.Params.Share.Whatsapp | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-whatsapp fa-fw") -}} {{- end -}} {{- /* 005: Viber */ -}} {{- if .Params.Share.Viber | default .Site.Params.Share.Viber | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-viber fa-fw") -}} {{- end -}} {{- /* 006: Pinterest */ -}} {{- if .Params.Share.Pinterest | default .Site.Params.Share.Pinterest | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-pinterest fa-fw") -}} {{- end -}} {{- /* 007: Tumblr */ -}} {{- if .Params.Share.Tumblr | default .Site.Params.Share.Tumblr | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-tumblr fa-fw") -}} {{- end -}} {{- /* 008: Hacker News */ -}} {{- if .Params.Share.Hackernews | default .Site.Params.Share.Hackernews | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-hacker-news fa-fw") -}} {{- end -}} {{- /* 009: Reddit */ -}} {{- if .Params.Share.Reddit | default .Site.Params.Share.Reddit | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-reddit fa-fw") -}} {{- end -}} {{- /* 010: VK */ -}} {{- if .Params.Share.VK | default .Site.Params.Share.VK | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-vk fa-fw") -}} {{- end -}} {{- /* 011: Buffer */ -}} {{- if .Params.Share.Buffer | default .Site.Params.Share.Buffer | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-buffer fa-fw") -}} {{- end -}} {{- /* 012: Xing */ -}} {{- if .Params.Share.Xing | default .Site.Params.Share.Xing | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-xing fa-fw") -}} {{- end -}} {{- /* 013: Line */ -}} {{- if .Params.Share.Line | default .Site.Params.Share.Line | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-line fa-fw") -}} {{- end -}} {{- /* 014: Instapaper */ -}} {{- if .Params.Share.Instapaper | default .Site.Params.Share.Instapaper | eq true -}} {{- partial "plugin/icon.html" (dict "class" "loveit it-instapaper-fill" "type" "other" "scratch" $scratch) -}} {{- end -}} {{- /* 015: Pocket */ -}} {{- if .Params.Share.Pocket | default .Site.Params.Share.Pocket | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-get-pocket fa-fw") -}} {{- end -}} {{- /* 016: Digg */ -}} {{- if .Params.Share.Digg | default .Site.Params.Share.Digg | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-digg fa-fw") -}} {{- end -}} {{- /* 017: StumbleUpon */ -}} {{- if .Params.Share.Stumbleupon | default .Site.Params.Share.Stumbleupon | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-stumbleupon fa-fw") -}} {{- end -}} {{- /* 018: Flipboard */ -}} {{- if .Params.Share.Flipboard | default .Site.Params.Share.Flipboard | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-flipboard fa-fw") -}} {{- end -}} {{- /* 019: 微博 */ -}} {{- if .Params.Share.Weibo | default .Site.Params.Share.Weibo | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-weibo fa-fw") -}} {{- end -}} {{- /* 020: 人人 */ -}} {{- if .Params.Share.Renren | default .Site.Params.Share.Renren | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-renren fa-fw") -}} {{- end -}} {{- /* 021: Myspace */ -}} {{- if .Params.Share.Myspace | default .Site.Params.Share.Myspace | eq true -}} {{- partial "plugin/icon.html" (dict "class" "loveit it-myspace-fill" "type" "other" "scratch" $scratch) -}} {{- end -}} {{- /* 022: Blogger */ -}} {{- if .Params.Share.Blogger | default .Site.Params.Share.Blogger | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-blogger fa-fw") -}} {{- end -}} {{- /* 023: 百度 */ -}} {{- if .Params.Share.Baidu | default .Site.Params.Share.Baidu | eq true -}} {{- partial "plugin/icon.html" (dict "class" "loveit it-baidu-fill" "type" "other" "scratch" $scratch) -}} {{- end -}} {{- /* 024: OK.RU */ -}} {{- if .Params.Share.Odnoklassniki | default .Site.Params.Share.Odnoklassniki | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-odnoklassniki fa-fw") -}} {{- end -}} {{- /* 025: Evernote */ -}} {{- if .Params.Share.Evernote | default .Site.Params.Share.Evernote | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-evernote fa-fw") -}} {{- end -}} {{- /* 026: Skype */ -}} {{- if .Params.Share.Skype | default .Site.Params.Share.Skype | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-skype fa-fw") -}} {{- end -}} {{- /* 027: Trello */ -}} {{- if .Params.Share.Trello | default .Site.Params.Share.Trello | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-trello fa-fw") -}} {{- end -}} {{- /* 028: Mix */ -}} {{- if .Params.Share.Mix | default .Site.Params.Share.Mix | eq true -}} {{- partial "plugin/icon.html" (dict "class" "fab fa-mix fa-fw") -}} {{- end -}} {{- end -}}