<!-- Social Share Button HTML -->

<!-- Source: https://github.com/jpescador/hugo-future-imperfect/blob/master/layouts/partials/share-links.html -->

<!-- Credits to jpescador and contributors -->

<!-- Twitter -->
{{ if .Site.Params.socialShareTwitter | default true}}
<li>
  <a href="//twitter.com/share?url={{ .Permalink }}&amp;text={{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}&amp;via={{ .Site.Social.twitter }}" target="_blank" class="btn btn-social-icon btn-twitter" title="Share on Twitter">
    <i class="fa fa-twitter"></i>
    </a>
</li>
{{ end }}

<!-- Google Plus -->
{{ if .Site.Params.socialShareGoogleplus | default true}}
<li>
  <a href="//plus.google.com/share?url={{ .Permalink }}" target="_blank" class="btn btn-social-icon btn-google" title="Share on Google+">
    <i class="fa fa-google-plus"></i>
  </a>
</li>
{{ end }}

<!-- Facebook -->
{{ if .Site.Params.socialShareFacebook | default true}}

<li>
  <a href="//www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" class="btn btn-social-icon btn-facebook" title="Share on Facebook">
    <i class="fa fa-facebook"></i>
    </a>
</li>
{{ end }}

<!-- Reddit -->
{{ if .Site.Params.socialShareReddit | default true}}
<li>
  <a href="//reddit.com/submit?url={{ .Permalink }}&amp;title={{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}" target="_blank" class="btn btn-social-icon btn-reddit" title="Share on Reddit">
    <i class="fa fa-reddit-alien"></i>
  </a>
</li>
{{ end }}

<!-- LinkedIn -->
{{ if .Site.Params.socialShareLinkedin | default true}}
<li>
  <a href="//www.linkedin.com/shareArticle?url={{ .Permalink }}&amp;title={{ .Title }}" target="_blank" class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
      <i class="fa fa-linkedin"></i>
    </a>
</li>
{{ end }}

<!-- StumbleUpon -->
{{ if .Site.Params.socialShareStumbleupon | default true}}
<li>
  <a href="//www.stumbleupon.com/submit?url={{ .Permalink }}&amp;title={{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}" target="_blank" class="btn btn-social-icon btn-google " title="Share on StumbleUpon">
    <i class="fa fa-stumbleupon"></i>
  </a>
</li>
{{ end }}

<!-- Pintrest -->
{{ if .Site.Params.socialSharePinterest | default true}}
<li>
  <a href="//www.pinterest.com/pin/create/button/?url={{ .Permalink }}&amp;description={{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}" target="_blank" class="btn btn-social-icon btn-pinterest" title="Share on Pinterest">
    <i class="fa fa-pinterest-p"></i>
  </a>
</li>
{{ end }}

<!-- Email -->
{{ if .Site.Params.socialShareEmail | default true}}
<li>
  <a href="mailto:?subject=Check out this project &quot;{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}&quot;&amp;body={{ .Permalink }}" target="_blank" class="btn btn-social-icon btn-github " title="Share on Email">
    <i class="fa fa-envelope"></i>
  </a>
</li>
{{ end }}
