From 4dc437bda700105269d7779cc5635190a4ad7f9a Mon Sep 17 00:00:00 2001 From: Priyanshu Kumar <110410015+cbum-dev@users.noreply.github.com> Date: Mon, 30 Jun 2025 23:11:02 +0530 Subject: [PATCH] fixed #1398 --- pages/blog/posts/[slug].page.tsx | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pages/blog/posts/[slug].page.tsx b/pages/blog/posts/[slug].page.tsx index 4f4ce4d9a..c76004101 100644 --- a/pages/blog/posts/[slug].page.tsx +++ b/pages/blog/posts/[slug].page.tsx @@ -86,14 +86,28 @@ export default function StaticMarkdownPage({
{author.name}
- {author.twitter && ( + {author.twitter ? ( @{author.twitter} - )} + ) : author.link ? ( + + {author.link + .replace( + /https?:\/\/(www\.)?linkedin\.com\/in\//, + '', + ) + .replace(/\/$/, '')} + + ) : null} );