mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-27 08:28:36 +00:00
7bffa43920
* .Site.Params.post_meta → .Site.Params.Entry.meta * .Site.Params.toc → .Site.Params.Entry.toc * .Site.Params.tocOpen → .Site.Params.Entry.tocOpen
44 lines
No EOL
3.4 KiB
HTML
44 lines
No EOL
3.4 KiB
HTML
{{- if and .IsPage (.Param "share") }}
|
|
<div class="entry__share share">
|
|
{{- if .Param "share.facebook" }}
|
|
<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">
|
|
{{ partial "svg/facebook.svg" (dict "class" "share__icon" ) }}
|
|
</a>
|
|
{{- end }}
|
|
{{- if .Param "share.twitter" }}
|
|
<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">
|
|
{{ partial "svg/twitter.svg" (dict "class" "share__icon" ) }}
|
|
</a>
|
|
{{- end }}
|
|
{{- if .Param "share.reddit" }}
|
|
<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">
|
|
{{ partial "svg/reddit.svg" (dict "class" "share__icon" ) }}
|
|
</a>
|
|
{{- end }}
|
|
{{- if .Param "share.telegram" }}
|
|
<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">
|
|
{{ partial "svg/telegram.svg" (dict "class" "share__icon" ) }}
|
|
</a>
|
|
{{- end }}
|
|
{{- if .Param "share.linkedin" }}
|
|
<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">
|
|
{{ partial "svg/linkedin.svg" (dict "class" "share__icon" ) }}
|
|
</a>
|
|
{{- end }}
|
|
{{- if .Param "share.vk" }}
|
|
<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">
|
|
{{ partial "svg/vk.svg" (dict "class" "share__icon" ) }}
|
|
</a>
|
|
{{- end }}
|
|
{{- if .Param "share.pocket" }}
|
|
<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">
|
|
{{ partial "svg/pocket.svg" (dict "class" "share__icon" ) }}
|
|
</a>
|
|
{{- end }}
|
|
{{- 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 }}
|
|
</div>
|
|
{{- end }} |