Skip to content

Commit

Permalink
#16 removed lib/server
Browse files Browse the repository at this point in the history
  • Loading branch information
alkmst-xyz committed May 6, 2023
1 parent a60d0e9 commit e00499d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 93 deletions.
12 changes: 6 additions & 6 deletions src/lib/components/PostsList.svelte
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<script lang="ts">
import type { Metadata } from '$lib/server/types';
import type { MdMeta } from '$lib/api/content/types';
export let postsMeta: Metadata[];
export let posts: MdMeta[];
export let postsPath: string = '/posts';
</script>

{#each postsMeta as metadata}
{#each posts as postMeta}
<a
href="{postsPath}/{metadata.slug}"
href="{postsPath}/{postMeta.slug}"
class="
rounded bg-gray-200 px-2 py-3
"
>
<h1>{metadata.title}</h1>
<p>{metadata.description}</p>
<h1>{postMeta.title}</h1>
<p>{postMeta.description}</p>
</a>
{/each}
31 changes: 0 additions & 31 deletions src/lib/server/posts.ts

This file was deleted.

36 changes: 0 additions & 36 deletions src/lib/server/types.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/lib/utils/index.ts

This file was deleted.

0 comments on commit e00499d

Please sign in to comment.