diff --git a/src/lib/blocks/Blog.svelte b/src/lib/blocks/Blog.svelte index ec3d6956..3cceab2d 100644 --- a/src/lib/blocks/Blog.svelte +++ b/src/lib/blocks/Blog.svelte @@ -1,10 +1,11 @@ + + + +

{blogTitle}

- {#if posts.length !== 0} + {#await postsWithAuthor} + + {:then loadedPosts}
- {#each posts as post} + {#each loadedPosts as post}
- {:else} - - {/if} + {:catch error} +

Error loading posts: {error.message}

+ {/await}
-
\ No newline at end of file diff --git a/src/lib/blocks/Hero.svelte b/src/lib/blocks/Hero.svelte index 4906d65d..5b267e80 100644 --- a/src/lib/blocks/Hero.svelte +++ b/src/lib/blocks/Hero.svelte @@ -49,7 +49,7 @@ {heroContent.description}

{#if buttons.length > 0} -
+
{#each buttons as button}