From 1027ebf14686d2a0a3829d66b79c694dc6afbc0d Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Date: Mon, 12 May 2025 23:40:01 +0000
Subject: [PATCH] theme(fix): replace username only when given
---
layouts/partials/social/follow.html | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
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 -}}
--
Gitblit v1.10.0