48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
{{ if or .Params.socialShare (and .Site.Params.socialShare (ne .Params.socialShare false)) }}
|
|
<!-- Social Share Button HTML -->
|
|
<div class="share-box" aria-hidden="true">
|
|
<ul class="share">
|
|
<!-- Twitter -->
|
|
<li>
|
|
<a href="//twitter.com/share?url={{ .Permalink }}&text={{ .Title }}&via={{ .Site.Author.twitter }}" target="_blank" title="Share on Twitter">
|
|
<i class="fab fa-twitter"></i>
|
|
</a>
|
|
</li>
|
|
|
|
<!-- Facebook -->
|
|
<li>
|
|
<a href="//www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" title="Share on Facebook">
|
|
<i class="fab fa-facebook"></i>
|
|
</a>
|
|
</li>
|
|
|
|
<!-- Reddit -->
|
|
<li>
|
|
<a href="//reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}" target="_blank" title="Share on Reddit">
|
|
<i class="fab fa-reddit"></i>
|
|
</a>
|
|
</li>
|
|
|
|
<!-- LinkedIn -->
|
|
<li>
|
|
<a href="//www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}" target="_blank" title="Share on LinkedIn">
|
|
<i class="fab fa-linkedin"></i>
|
|
</a>
|
|
</li>
|
|
|
|
<!-- StumbleUpon -->
|
|
<li>
|
|
<a href="//www.stumbleupon.com/submit?url={{ .Permalink }}&title={{ .Title }}" target="_blank" title="Share on StumbleUpon">
|
|
<i class="fab fa-stumbleupon"></i>
|
|
</a>
|
|
</li>
|
|
|
|
<!-- Pinterest -->
|
|
<li>
|
|
<a href="//www.pinterest.com/pin/create/button/?url={{ .Permalink }}&description={{ .Title }}" target="_blank" title="Share on Pinterest">
|
|
<i class="fab fa-pinterest"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|