/
share.html
30 lines (28 loc) · 1.87 KB
/
share.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{ if ne .Params.share false}}
<h2 class="social-title">Like what you read? Give {{range first 1 .Params.authors }} {{ . }} {{end}} a thumbs up in the chat.</h2>
<p class="social-subtitle">Feedback on {{ .Type | pluralize }} will help us curate the best content for the community. Open chat to share your thoughts with the author.</p>
<section class="share">
<!-- To add a new chat topic, see footer-custom.html. -->
<div class="float-left">
<button type="button" class="btn btn-chat" id="practice-chat">Open Chat</button>
</div>
<div class="share-icons">
<a class="icon-twitter share-links" 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 share-links" 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 share-links" 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-linkedin share-links" style="font-size: 1.4em" href="https://www.linkedin.com/shareArticle?mini=true&url={{ .Permalink }}&title={{ .Site.Title }}"
onclick="window.open(this.href, 'linkedin-share', 'width=490,height=530');return false;">
<span class="hidden">LinkedIn</span>
</a>
</div>
</section>
{{end}}