theme(fix): override profile link generation with full link
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
This commit is contained in:
parent
ef4a6a0cfe
commit
9254c455c9
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue