2023-11-04 09:07:47 -04:00
|
|
|
<button id="share-btn" class="hdr-btn" title="{{i18n "share"}}">{{- partial "svg.html" (dict "context" . "name" "share") -}}</button>
|
|
|
|
|
|
|
|
<div id="share-links" class="animated fast">
|
|
|
|
{{ $title := .Title }}
|
|
|
|
{{ $url := printf "%s" .Permalink }}
|
2023-11-05 09:34:27 -05:00
|
|
|
{{ $author := (.Params.author | default .Site.Params.author.name) }}
|
|
|
|
{{ $summary := print $title ", by " $author "\n\n" .Params.description "\n" }}
|
2023-11-04 09:07:47 -04:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="https://twitter.com/intent/tweet?hashtags=hermit2&url={{ .Permalink }}&text={{ .Title }}" target="_blank" rel="noopener" aria-label="Share on X">{{- partial "svg.html" (dict "context" . "name" "x") -}}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://facebook.com/sharer/sharer.php?u={{ .Permalink }}" target="_blank" rel="noopener" aria-label="Share on Facebook">{{- partial "svg.html" (dict "context" . "name" "facebook") -}}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="mailto:?subject={{ .Title }}&body={{ .Permalink }}" target="_self" rel="noopener" aria-label="Share on Email">{{- partial "svg.html" (dict "context" . "name" "email") -}}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2023-11-05 09:34:27 -05:00
|
|
|
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ $url }}&source={{ .Site.BaseURL }}&title={{ $title }}&summary={{ $summary }}" target="_blank" rel="noopener" aria-label="Share on LinkedIn">{{- partial "svg.html" (dict "context" . "name" "linkedin") -}}</a>
|
2023-11-04 09:07:47 -04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|