From 9ae01e39893e2061af194bae58a2779c9213afe7 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 9 Sep 2023 13:44:35 +0200 Subject: [PATCH] clean gh & sh links --- src/pages/index.astro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index d36657e..5e57324 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,10 +4,13 @@ import Card from "../components/Card.astro"; import Footer from "../components/Footer.astro"; const response = await fetch('https://social.ayco.io/api/v1/accounts/109547735999980313') -const { +let { avatar, note } = await response.json(); + +note = note.replace('ayco.io/gh/', '').replace('ayco.io/sh/', '') + --- @@ -201,5 +204,6 @@ const { } .highlighted__note a { color: white; + font-weight: normal; } \ No newline at end of file