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

Patrick Kollitsch
20.27.2024 9254c455c97b59963af6bf2d1c791cc6cb6c10df
theme(fix): override profile link generation with full link

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
1 files modified
5 ■■■■■ changed files
layouts/partials/social/follow.html 5 ●●●●● patch | view | raw | blame | history
layouts/partials/social/follow.html
@@ -14,7 +14,12 @@
    {{- $network := $setup.slug -}}
    {{- $profile := index $config $network -}}
    {{- $rel := $setup.rel | default "noopener" -}}
    {{- $link := (printf $setup.profile $profile.username) -}}
    {{- with $profile.profilelink -}}
      {{- $link = $profile.profilelink -}}
    {{- end -}}
    {{- $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 }}"