diff --git a/src/pages/index.astro b/src/pages/index.astro index 5e57324..66f1dc8 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,10 +5,12 @@ import Footer from "../components/Footer.astro"; const response = await fetch('https://social.ayco.io/api/v1/accounts/109547735999980313') let { + display_name, avatar, note } = await response.json(); +const [first_name, last_name] = display_name.split(' ') note = note.replace('ayco.io/gh/', '').replace('ayco.io/sh/', '') --- @@ -24,7 +26,7 @@ note = note.replace('ayco.io/gh/', '').replace('

- AyoAyco + {first_name}{last_name}