theme(fix): replace username only when given

see #843

Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
This commit is contained in:
Patrick Kollitsch 2025-05-13 06:40:01 +07:00
parent a0019812ff
commit 1027ebf146
No known key found for this signature in database
GPG Key ID: 01A2661D61A772CA

View File

@ -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 -}}