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

+ +
+ {/if} + + {#if showPosts < postCount} + + {/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.title}

+
+

+ + {post.excerpt} + +

+
+
+
+
+
+
+
+