From e9ec93a471d9a753db01b682e75c52b32adf16f2 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 18 Feb 2021 21:44:01 +0100 Subject: use LoveIt theme, self hosted --- themes/LoveIt/layouts/partials/plugin/share.html | 199 +++++++++++++++++++++++ 1 file changed, 199 insertions(+) create mode 100644 themes/LoveIt/layouts/partials/plugin/share.html (limited to 'themes/LoveIt/layouts/partials/plugin/share.html') diff --git a/themes/LoveIt/layouts/partials/plugin/share.html b/themes/LoveIt/layouts/partials/plugin/share.html new file mode 100644 index 0000000..941647c --- /dev/null +++ b/themes/LoveIt/layouts/partials/plugin/share.html @@ -0,0 +1,199 @@ +{{- $share := (.Scratch.Get "params").share | default dict -}} + +{{- if $share.enable -}} + {{- /* 001: Twitter */ -}} + {{- if $share.Twitter -}} + + {{- dict "Class" "fab fa-twitter fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 002: Facebook */ -}} + {{- if $share.Facebook -}} + + {{- dict "Class" "fab fa-facebook-square fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 003: Linkedin */ -}} + {{- if $share.Linkedin -}} + + {{- dict "Class" "fab fa-linkedin fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 004: WhatsApp */ -}} + {{- if $share.Whatsapp -}} + + {{- dict "Class" "fab fa-whatsapp fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 005: Viber */ -}} + {{- if $share.Viber -}} + + {{- dict "Class" "fab fa-viber fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 006: Pinterest */ -}} + {{- if $share.Pinterest -}} + + {{- dict "Class" "fab fa-pinterest fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 007: Tumblr */ -}} + {{- if $share.Tumblr -}} + + {{- dict "Class" "fab fa-tumblr fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 008: Hacker News */ -}} + {{- if $share.Hackernews -}} + + {{- dict "Class" "fab fa-hacker-news fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 009: Reddit */ -}} + {{- if $share.Reddit -}} + + {{- dict "Class" "fab fa-reddit fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 010: VK */ -}} + {{- if $share.VK -}} + + {{- dict "Class" "fab fa-vk fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 011: Buffer */ -}} + {{- if $share.Buffer -}} + + {{- dict "Class" "fab fa-buffer fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 012: Xing */ -}} + {{- if $share.Xing -}} + + {{- dict "Class" "fab fa-xing fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 013: Line */ -}} + {{- if $share.Line -}} + + {{- dict "Simpleicons" "line" "Prefix" (.Scratch.Get "cdn" | default dict).simpleIconsPrefix | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 014: Instapaper */ -}} + {{- if $share.Instapaper -}} + + {{- dict "Simpleicons" "instapaper" "Prefix" (.Scratch.Get "cdn" | default dict).simpleIconsPrefix | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 015: Pocket */ -}} + {{- if $share.Pocket -}} + + {{- dict "Class" "fab fa-get-pocket fa-fw" | partial "plugin/icon.html" -}} + + {{- 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 */ -}} + {{- if $share.Flipboard -}} + + {{- dict "Class" "fab fa-flipboard fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 019: 微博 */ -}} + {{- 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 */ -}} + {{- if $share.Blogger -}} + + {{- dict "Class" "fab fa-blogger fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 023: 百度 */ -}} + {{- if $share.Baidu -}} + + {{- dict "Simpleicons" "baidu" "Prefix" (.Scratch.Get "cdn" | default dict).simpleIconsPrefix | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 024: OK.RU */ -}} + {{- if $share.Odnoklassniki -}} + + {{- dict "Class" "fab fa-odnoklassniki fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 025: Evernote */ -}} + {{- if $share.Evernote -}} + + {{- dict "Class" "fab fa-evernote fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 026: Skype */ -}} + {{- if $share.Skype -}} + + {{- dict "Class" "fab fa-skype fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 027: Trello */ -}} + {{- if $share.Trello -}} + + {{- dict "Class" "fab fa-trello fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} + + {{- /* 028: Mix */ -}} + {{- if $share.Mix -}} + + {{- dict "Class" "fab fa-mix fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} +{{- end -}} -- cgit v1.2.3