Welcome to mirror list, hosted at ThFree Co, Russian Federation.

social-sharer.html « partials « layouts - github.com/GDGToulouse/devfest-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bede4a0ec6af3da26605ebae522259127680845d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{- if (eq .name "facebook") -}}
<a href="https://www.facebook.com/sharer.php?u={{ .url }}"
  class="social" rel="noreferrer" target="_blank">
	{{ partial "icon.html" .name }}
	{{- i18n "facebook_share_label" -}}
</a>
{{- else if (eq .name "twitter") -}}
{{ $text := i18n "twitter_share_text" }}
<a href="https://twitter.com/share?url={{ .url }}&text={{ $text }}"
  class="social" rel="noreferrer" target="_blank">
	{{ partial "icon.html" .name }}
	{{- i18n "twitter_share_label" -}}
</a>
{{- end -}}