diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index a1909d8..08fbbf7 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -7,9 +7,24 @@ export const load = (async () => { return { ...info, fetched: { - discord: await discord(info.discord), - github: await github(7, info.github), - blog: await blog(info.blog.api, info.blog.base), + discord: await discord(info.discord).catch((err) => ({ + username: '', + status: '', + activity: [], + spotify: { + song: '', + art: '', + link: '', + artist: '', + }, + })), + github: await github(7, info.github).catch((err) => ([])), + blog: await blog(info.blog.api, info.blog.base).catch((err) => ({ + title: 'Error', + desc: err, + url: info.blog.base, + created: new Date(), + })), }, }; }) satisfies LayoutLoad; \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1300983..1d943f2 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -108,14 +108,14 @@