diff --git a/src/lib/components/blog/CategoryFilter.svelte b/src/lib/components/blog/CategoryFilter.svelte index 4646cca..480a4ed 100644 --- a/src/lib/components/blog/CategoryFilter.svelte +++ b/src/lib/components/blog/CategoryFilter.svelte @@ -1,12 +1,11 @@ + + + + + Blog + + + + {#each posts.slice(0, displayAmount) as post, index} + + + + {:else} + No posts yet! + {/each} + + + + {#if posts.slice(displayAmount).length > 0} + + Previous posts + + {#each displayPosts as post} + + + + {/each} + + + {/if} + + {#if showPosts < postCount} + See more {H_ELLIPSIS_ENTITY} + {/if} + diff --git a/src/lib/components/blog/Preview.svelte b/src/lib/components/blog/Preview.svelte new file mode 100644 index 0000000..c76b197 --- /dev/null +++ b/src/lib/components/blog/Preview.svelte @@ -0,0 +1,96 @@ + + + + + + + + + + + {post.title} + + + + {post.excerpt} + + + + + + + + + +
No posts yet!
+ + {post.excerpt} + +