blob: fd846f68470ec63d542fbd6c76da1a7a5d0d7feb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{{ if .Site.Params.shareButton }}
<div class="share-card">
<a class="twitter" href="https://twitter.com/intent/tweet?text={{ .Permalink }} - {{ .LinkTitle }} {{ with .Site.Params.twitter }}by @{{ . }}{{ end }}"><i class="fa fa-twitter"></i> Tweet</a>
<a class="facebook" href="#" onclick="
window.open(
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href),
'facebook-share-dialog',
'width=626,height=436');
return false;"><i class="fa fa-facebook"></i> {{ .Site.Params.share | default "Share" }}
</a>
</div>
{{ end }}
|