2018-06-11 18:41:16 +00:00
{{- if and .IsPage (.Param "share") }}
< div class = "post__share share" >
{{- if .Param "share.facebook" }}
2018-11-16 16:45:08 +00:00
< a class = "share__link btn" title = "{{ T " share-caption " } } Facebook " href = "https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target = "_blank" rel = "noopener noreferrer" onclick = "window.open(this.href, '{{ T " share-caption " } } Facebook ' , ' width = 800,height=600,toolbar=0,status=0'); return false " >
2018-06-11 18:41:16 +00:00
{{ partial "svg/facebook.svg" (dict "class" "share__icon" ) }}
< / a >
{{- end }}
{{- if .Param "share.twitter" }}
2018-11-16 16:45:08 +00:00
< a class = "share__link btn" title = "{{ T " share-caption " } } Twitter " href = "https://twitter.com/intent/tweet/?url={{ .Permalink }}&text={{ .Title }}" target = "_blank" rel = "noopener noreferrer" onclick = "window.open(this.href, '{{ T " share-caption " } } Twitter ' , ' width = 800,height=450,resizable=yes,toolbar=0,status=0'); return false " >
2018-06-11 18:41:16 +00:00
{{ partial "svg/twitter.svg" (dict "class" "share__icon" ) }}
< / a >
{{- end }}
{{- if .Param "share.reddit" }}
2018-11-16 16:45:08 +00:00
< a class = "share__link btn" title = "{{ T " share-caption " } } Reddit " href = "https://www.reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}" target = "_blank" rel = "noopener noreferrer" onclick = "window.open(this.href, '{{ T " share-caption " } } Reddit ' , ' width = 832,height=624,toolbar=0,status=0'); return false " >
2018-06-11 18:41:16 +00:00
{{ partial "svg/reddit.svg" (dict "class" "share__icon" ) }}
< / a >
{{- end }}
{{- if .Param "share.telegram" }}
2018-11-16 16:45:08 +00:00
< a class = "share__link btn" title = "{{ T " share-caption " } } Telegram " href = "https://t.me/share/url?url={{ .Permalink }}&title={{ .Title }}" target = "_blank" rel = "noopener noreferrer" onclick = "window.open(this.href, '{{ T " share-caption " } } Telegram ' , ' width = 800,height=600,toolbar=0,status=0'); return false " >
2018-06-11 18:41:16 +00:00
{{ partial "svg/telegram.svg" (dict "class" "share__icon" ) }}
< / a >
{{- end }}
{{- if .Param "share.linkedin" }}
2018-11-16 16:45:08 +00:00
< a class = "share__link btn" title = "{{ T " share-caption " } } LinkedIn " href = "https://www.linkedin.com/shareArticle?mini=true&url={{ .Permalink }}&title={{ .Title }}" target = "_blank" rel = "noopener noreferrer" onclick = "window.open(this.href, '{{ T " share-caption " } } LinkedIn ' , ' width = 640,height=480,toolbar=0,status=0'); return false " >
2018-06-11 18:41:16 +00:00
{{ partial "svg/linkedin.svg" (dict "class" "share__icon" ) }}
< / a >
{{- end }}
{{- if .Param "share.vk" }}
2018-11-16 16:45:08 +00:00
< a class = "share__link btn" title = "{{ T " share-caption " } } VK " href = "https://vk.com/share.php?url={{ .Permalink }}" target = "_blank" rel = "noopener noreferrer" onclick = "window.open(this.href, '{{ T " share-caption " } } VK ' , ' width = 640,height=480,toolbar=0,status=0'); return false " >
2018-06-11 18:41:16 +00:00
{{ partial "svg/vk.svg" (dict "class" "share__icon" ) }}
< / a >
{{- end }}
{{- if .Param "share.pocket" }}
2018-11-16 16:45:08 +00:00
< a class = "share__link btn" title = "{{ T " save-caption " } } Pocket " href = "https://getpocket.com/edit?url={{ .Permalink }}&title={{ .Title }}" target = "_blank" rel = "noopener noreferrer" onclick = "window.open(this.href, '{{ T " save-caption " } } Pocket ' , ' width = 480,height=320,toolbar=0,status=0'); return false " >
2018-06-11 18:41:16 +00:00
{{ partial "svg/pocket.svg" (dict "class" "share__icon" ) }}
< / a >
{{- end }}
2019-09-11 20:25:14 +00:00
{{- if .Param "share.pinterest" }}
< a class = "share__link btn" title = "{{ T " save-caption " } } Pinterest " href = "https://pinterest.com/pin/create/button/?url={{ .Permalink }}&description={{ .Title }}" target = "_blank" rel = "noopener noreferrer" onclick = "window.open(this.href, '{{ T " save-caption " } } Pocket ' , ' width = 800,height=720,toolbar=0,status=0'); return false " >
{{ partial "svg/pinterest.svg" (dict "class" "share__icon" ) }}
< / a >
{{- end }}
2018-06-11 18:41:16 +00:00
< / div >
{{- end }}