2020-02-03 11:38:10 +01:00
{{- if .Params.share.enable | default .Site.Params.share.enable | eq true -}}
{{- /* Share on Twitter */ -}}
{{- if .Params.Share.Twitter | default .Site.Params.Share.Twitter | eq true -}}
< a href = "//twitter.com/share?url={{ .Permalink }}&text={{ .Title }}&via={{ .Site.Params.Social.Twitter }}" target = "_blank" title = "{{ T " share " } } Twitter " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-twitter fa-fw" > < / i >
2019-03-14 11:16:11 +01:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on Facebook */ -}}
{{- if .Params.Share.Facebook | default .Site.Params.Share.Facebook | eq true -}}
< a href = "//www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target = "_blank" title = "{{ T " share " } } Facebook " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-facebook-square fa-fw" > < / i >
2019-03-14 11:16:11 +01:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on Reddit */ -}}
{{- if .Params.Share.Reddit | default .Site.Params.Share.Reddit | eq true -}}
< a href = "//reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}" target = "_blank" title = "{{ T " share " } } Reddit " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-reddit fa-fw" > < / i >
2019-03-14 11:16:11 +01:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on Linkedin */ -}}
{{- if .Params.Share.Linkedin | default .Site.Params.Share.Linkedin | eq true -}}
< a href = "//www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}" target = "_blank" title = "{{ T " share " } } LinkedIn " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-linkedin fa-fw" > < / i >
2019-03-14 11:16:11 +01:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on Pinterest */ -}}
{{- if .Params.Share.Pinterest | default .Site.Params.Share.Pinterest | eq true -}}
< a href = "//www.pinterest.com/pin/create/button/?url={{ .Permalink }}&description={{ .Title }}" target = "_blank" title = "{{ T " share " } } Pinterest " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-pinterest fa-fw" > < / i >
2019-03-14 11:16:11 +01:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on Hacker News */ -}}
{{- if .Params.Share.Hackernews | default .Site.Params.Share.Hackernews | eq true -}}
< a href = "//news.ycombinator.com/submitlink?u={{ .Permalink }}&description={{ .Title }}" target = "_blank" title = "{{ T " share " } } Hacker News " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-y-combinator fa-fw" > < / i >
2019-03-14 16:07:08 +01:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on Mix */ -}}
{{- if .Params.Share.Mix | default .Site.Params.Share.Mix | eq true -}}
< a href = "//mix.com/add?url={{ .Permalink }}&description={{ .Title }}" target = "_blank" title = "{{ T " share " } } Mix " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-mix fa-fw" > < / i >
2019-08-05 15:15:01 +02:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on Tumblr */ -}}
{{- if .Params.Share.Tumblr | default .Site.Params.Share.Tumblr | eq true -}}
< a href = "//www.tumblr.com/widgets/share/tool?canonicalUrl={{ .Permalink }}&title={{ .Title }}" target = "_blank" title = "{{ T " share " } } Tumblr " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-tumblr fa-fw" > < / i >
2019-08-05 15:15:01 +02:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on VKontakte */ -}}
{{- if .Params.Share.VKontakte | default .Site.Params.Share.VKontakte | eq true -}}
< a href = "//vk.com/share.php?url={{ .Permalink }}&title={{ .Title }}" target = "_blank" title = "{{ T " share " } } VKontakte " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-vk fa-fw" > < / i >
2019-08-05 15:15:01 +02:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-03 11:38:10 +01:00
{{- /* Share on Weibo */ -}}
{{- if .Params.Share.Weibo | default .Site.Params.Share.Weibo | eq true -}}
< a href = "//service.weibo.com/share/share.php?url={{ .Permalink }}&appkey=&title={{ .Title }}{{ with $.Params.featured_image }}&pic={{ . }}{{- end -}}" target = "_blank" title = "{{ T " share " } } Weibo " >
2019-08-26 19:15:00 +02:00
< i class = "fab fa-weibo fa-fw" > < / i >
2019-08-05 15:15:01 +02:00
< / a >
2020-01-31 15:53:04 +01:00
{{- end -}}
2020-02-06 17:10:00 +01:00
{{- end -}}