| | |
| | | {{- $network := $setup.slug -}} |
| | | {{- $profile := index $config $network -}} |
| | | {{- $rel := $setup.rel | default "noopener" -}} |
| | | {{- $label := $profile.label | default $setup.label -}} |
| | | |
| | | {{- $link := (printf $setup.profile $profile.username) -}} |
| | | {{- with $profile.profilelink -}} |
| | |
| | | {{- $languageDirection := cond (eq $.Site.Language.LanguageDirection "rtl") "ml1" "mr1" -}} |
| | | <a href="{{ $link }}" target="_blank" rel="{{ $rel }}" |
| | | class="{{ .name }} ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l {{ $languageDirection }}" |
| | | title="follow on {{ .label }} - Opens in a new window" |
| | | aria-label="follow on {{ .label }} - Opens in a new window"> |
| | | title="follow on {{ $label }} - Opens in a new window" |
| | | aria-label="follow on {{ $label }} - Opens in a new window"> |
| | | {{- with .icon -}} |
| | | {{- $icon := resources.Get (printf "ananke/socials/%s.svg" .) -}} |
| | | {{- with $icon -}} |
| | |
| | | </span> |
| | | {{- end -}} |
| | | {{- else -}} |
| | | {{- .label -}} |
| | | {{- $label -}} |
| | | {{- end -}} |
| | | {{- with $config.follow.new_window_icon -}} |
| | | {{- partial "new-window-icon.html" . -}} |