From 51aebf04b7bc568b857e1e23f0babfe2efbb34a0 Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 29 Nov 2024 14:51:20 -0500 Subject: [PATCH] update --- astro.config.mjs | 3 +++ src/components/blog/posts.astro | 4 +--- src/pages/blog/index.astro | 2 +- src/pages/index.astro | 16 ++++++++-------- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 990e89e..c985b33 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -82,6 +82,9 @@ export default defineConfig({ devToolbar: { enabled: false }, + experimental: { + serverIslands: true + }, vite: { css: { preprocessorOptions: { diff --git a/src/components/blog/posts.astro b/src/components/blog/posts.astro index fe215ff..444dccf 100644 --- a/src/components/blog/posts.astro +++ b/src/components/blog/posts.astro @@ -4,9 +4,7 @@ const posts = await ghostClient.posts .browse({ limit: "all", }) - .catch((err) => { - console.error(err); - }); + .catch(() => {null}) ---
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 10c4ecd..fe94277 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -16,7 +16,7 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue"; - +
Loading posts...
diff --git a/src/pages/index.astro b/src/pages/index.astro index d1c9973..c14b6d7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -26,12 +26,19 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue"; - +
Loading posts...
+ -