clean gh & sh links

This commit is contained in:
Ayo 2023-09-09 13:44:35 +02:00
parent bb1c663b41
commit 9ae01e3989

View file

@ -4,10 +4,13 @@ import Card from "../components/Card.astro";
import Footer from "../components/Footer.astro"; import Footer from "../components/Footer.astro";
const response = await fetch('https://social.ayco.io/api/v1/accounts/109547735999980313') const response = await fetch('https://social.ayco.io/api/v1/accounts/109547735999980313')
const { let {
avatar, avatar,
note note
} = await response.json(); } = await response.json();
note = note.replace('<span class="">ayco.io/gh/', '<span class="">').replace('<span class="">ayco.io/sh/', '<span class="">')
--- ---
<Layout> <Layout>
@ -201,5 +204,6 @@ const {
} }
.highlighted__note a { .highlighted__note a {
color: white; color: white;
font-weight: normal;
} }
</style> </style>