From 1027ebf14686d2a0a3829d66b79c694dc6afbc0d Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch Date: Tue, 13 May 2025 06:40:01 +0700 Subject: [PATCH] theme(fix): replace username only when given see #843 Signed-off-by: Patrick Kollitsch --- layouts/partials/social/follow.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/social/follow.html b/layouts/partials/social/follow.html index 1eaf0dd..17dc19b 100644 --- a/layouts/partials/social/follow.html +++ b/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 -}}