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

Patrick Kollitsch
13.40.2025 1027ebf14686d2a0a3829d66b79c694dc6afbc0d
theme(fix): replace username only when given

see #843

Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
1 files modified
5 ■■■■ changed files
layouts/partials/social/follow.html 5 ●●●● patch | view | raw | blame | history
layouts/partials/social/follow.html
@@ -11,7 +11,10 @@
    {{- $rel := $profile.rel | compare.Default "" -}}
    {{- $label := $profile.label | compare.Default $setup.label -}}
    {{- $link := (fmt.Printf $setup.profile $profile.username) -}}
    {{- $link := $setup.profile -}}
    {{- with $profile.username -}}
      {{- $link = printf $link . -}}
    {{- end -}}
    {{- with $profile.profilelink -}}
      {{- $link = $profile.profilelink -}}
    {{- end -}}