From 9254c455c97b59963af6bf2d1c791cc6cb6c10df Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <patrick@davids-neighbour.com>
Date: Sun, 20 Oct 2024 08:27:19 +0000
Subject: [PATCH] theme(fix): override profile link generation with full link
---
layouts/partials/social/follow.html | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
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" -}}
<a href="{{ $link }}" target="_blank" rel="{{ $rel }}"
class="{{ .name }} ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l {{ $languageDirection }}"
--
Gitblit v1.10.0