mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
20.58.2024 7913086a0f255a8c3a7878a152471270d0b15805
layouts/partials/social/follow.html
@@ -14,6 +14,7 @@
    {{- $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 -}}
@@ -23,8 +24,8 @@
    {{- $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 -}}
@@ -34,7 +35,7 @@
          </span>
        {{- end -}}
      {{- else -}}
        {{- .label -}}
        {{- $label -}}
      {{- end -}}
      {{- with $config.follow.new_window_icon -}}
        {{- partial "new-window-icon.html" . -}}