summaryrefslogtreecommitdiff
path: root/src/routes/+page.svelte
blob: e304a68cfee5c6063d05f08cb2ed679faeb9233d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<script lang="ts">
	import PostCard from "$lib/components/PostCard.svelte";
	import { getPosts } from "$lib/utils/posts";

	const posts = getPosts();
</script>

<svelte:head>
	<title>wenekar sucks at programming</title>
	<meta
		name="description"
		content="A personal blog built with SvelteKit and MDsveX"
	/>
</svelte:head>

<section>
	{#if posts.length === 0}
		<p>No posts.</p>
	{:else}
		{#each posts as post}
			<PostCard {post} />
		{/each}
	{/if}
</section>