From 89350762693e719a1f38dc147fc5595b51cdd0e3 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 6 Apr 2026 10:14:59 +0000 Subject: [PATCH] Strip www. prefix from social link display values on contact page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The regex now removes both https:// and an optional www. prefix, so https://www.linkedin.com displays as linkedin.com instead of www.linkedin.com — consistent with github.com and x.com. https://claude.ai/code/session_019mp7rTrQPx9yxp17hgjsYb --- src/pages/contact.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/contact.astro b/src/pages/contact.astro index c3688de..ebe73d5 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -26,7 +26,7 @@ const channels = [ ...socialLinks.map((link) => ({ icon: link.icon, label: link.label, - value: link.href.replace(/^https?:\/\//, ''), + value: link.href.replace(/^https?:\/\/(www\.)?/, ''), note: 'Follow along', href: link.href, external: true,