mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-07 16:42:45 +00:00
theme(fix): replace username only when given
see #843 Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
This commit is contained in:
parent
a0019812ff
commit
1027ebf146
@ -11,7 +11,10 @@
|
|||||||
{{- $rel := $profile.rel | compare.Default "" -}}
|
{{- $rel := $profile.rel | compare.Default "" -}}
|
||||||
{{- $label := $profile.label | compare.Default $setup.label -}}
|
{{- $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 -}}
|
{{- with $profile.profilelink -}}
|
||||||
{{- $link = $profile.profilelink -}}
|
{{- $link = $profile.profilelink -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user