From 9254c455c97b59963af6bf2d1c791cc6cb6c10df Mon Sep 17 00:00:00 2001 From: Patrick Kollitsch Date: Sun, 20 Oct 2024 15:27:19 +0700 Subject: [PATCH] theme(fix): override profile link generation with full link Signed-off-by: Patrick Kollitsch --- layouts/partials/social/follow.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/social/follow.html b/layouts/partials/social/follow.html index b9227b4..c4c3037 100644 --- a/layouts/partials/social/follow.html +++ b/layouts/partials/social/follow.html @@ -14,7 +14,12 @@ {{- $network := $setup.slug -}} {{- $profile := index $config $network -}} {{- $rel := $setup.rel | default "noopener" -}} + {{- $link := (printf $setup.profile $profile.username) -}} + {{- with $profile.profilelink -}} + {{- $link = $profile.profilelink -}} + {{- end -}} + {{- $languageDirection := cond (eq $.Site.Language.LanguageDirection "rtl") "ml1" "mr1" -}}