diff --git a/src/routes/(DefaultStyle)/[slug]/+page.svelte b/src/routes/(DefaultStyle)/[slug]/+page.svelte index b2945e3..b2a34d0 100644 --- a/src/routes/(DefaultStyle)/[slug]/+page.svelte +++ b/src/routes/(DefaultStyle)/[slug]/+page.svelte @@ -9,7 +9,7 @@ {#each data.posts as post} {#if post.metadata.published}
- +
@@ -23,9 +23,9 @@
- + {data.pageNo}/{data.lastPage} - +
diff --git a/src/routes/(DefaultStyle)/category/+page.svelte b/src/routes/(DefaultStyle)/category/+page.svelte index 457f0e8..af8da47 100644 --- a/src/routes/(DefaultStyle)/category/+page.svelte +++ b/src/routes/(DefaultStyle)/category/+page.svelte @@ -4,6 +4,6 @@ {#each data.cats as cat}
- {cat} + {cat}
{/each} \ No newline at end of file diff --git a/src/routes/(DefaultStyle)/category/[slug]/+page.server.js b/src/routes/(DefaultStyle)/category/[slug]/+page.server.js index e69de29..ea36a87 100644 --- a/src/routes/(DefaultStyle)/category/[slug]/+page.server.js +++ b/src/routes/(DefaultStyle)/category/[slug]/+page.server.js @@ -0,0 +1,11 @@ +import Metadatas from "$lib/server/Metadatas"; + +export async function load({params}) { + const cat = params.slug + + const metalist = await Metadatas() + + const result = metalist.filter((meta)=>meta.metadata.category == cat).map((meta)=>meta.postId) + + return {posts: result} +} \ No newline at end of file diff --git a/src/routes/(DefaultStyle)/category/[slug]/+page.svelte b/src/routes/(DefaultStyle)/category/[slug]/+page.svelte index e69de29..c20e6aa 100644 --- a/src/routes/(DefaultStyle)/category/[slug]/+page.svelte +++ b/src/routes/(DefaultStyle)/category/[slug]/+page.svelte @@ -0,0 +1,8 @@ + + +{#each data.posts as post} +
{post}
+{/each} \ No newline at end of file diff --git a/src/routes/(DefaultStyle)/post/[slug]/+page.svelte b/src/routes/(DefaultStyle)/post/[slug]/+page.svelte index e36c0e0..5449de3 100644 --- a/src/routes/(DefaultStyle)/post/[slug]/+page.svelte +++ b/src/routes/(DefaultStyle)/post/[slug]/+page.svelte @@ -70,7 +70,7 @@
History
-
Raw file
+
Raw file
diff --git a/src/routes/(DefaultStyle)/post/[slug]/share.svelte b/src/routes/(DefaultStyle)/post/[slug]/share.svelte index ba8cb36..5ce1a04 100644 --- a/src/routes/(DefaultStyle)/post/[slug]/share.svelte +++ b/src/routes/(DefaultStyle)/post/[slug]/share.svelte @@ -35,7 +35,7 @@
- +
diff --git a/src/routes/(DefaultStyle)/tag/+page.svelte b/src/routes/(DefaultStyle)/tag/+page.svelte index f03e0fb..b8c2a92 100644 --- a/src/routes/(DefaultStyle)/tag/+page.svelte +++ b/src/routes/(DefaultStyle)/tag/+page.svelte @@ -4,6 +4,6 @@ {#each data.tags as tag}
- {tag} + {tag}
{/each} \ No newline at end of file diff --git a/src/routes/(DefaultStyle)/tag/[slug]/+page.svelte b/src/routes/(DefaultStyle)/tag/[slug]/+page.svelte index 0c12860..c20e6aa 100644 --- a/src/routes/(DefaultStyle)/tag/[slug]/+page.svelte +++ b/src/routes/(DefaultStyle)/tag/[slug]/+page.svelte @@ -1,7 +1,8 @@ {#each data.posts as post} - {post} +
{post}
{/each} \ No newline at end of file