22 lines
1.3 KiB
HTML
22 lines
1.3 KiB
HTML
|
{{ if ne .Params.share false}}
|
||
|
<section class="share">
|
||
|
<h4>Share this {{ if .Type }}{{.Type}}{{else}}post{{end}}</h4>
|
||
|
<a class="icon-twitter" style="font-size: 1.4em" href="https://twitter.com/share?text={{ .Title | safeHTML}} - {{ .Site.Title }}&url={{ .Permalink }}"
|
||
|
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||
|
<span class="hidden">Twitter</span>
|
||
|
</a>
|
||
|
<a class="icon-facebook" style="font-size: 1.4em" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}"
|
||
|
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
||
|
<span class="hidden">Facebook</span>
|
||
|
</a>
|
||
|
<a class="icon-pinterest" style="font-size: 1.4em" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestmedia }}&media={{ .Params.pinterestmedia | relURL }}{{ end }}&description={{ .Title | safeHTML}}"
|
||
|
onclick="window.open(this.href, 'pinterest-share','width=580,height=296');return false;">
|
||
|
<span class="hidden">Pinterest</span>
|
||
|
</a>
|
||
|
<a class="icon-google-plus" style="font-size: 1.4em" href="https://plus.google.com/share?url={{ .Permalink }}"
|
||
|
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
||
|
<span class="hidden">Google+</span>
|
||
|
</a>
|
||
|
</section>
|
||
|
{{end}}
|