<script>
	export let data;
	const { category, posts } = data;
</script>

<svelte:head>
	<title>silentsilas - {category}</title>
	<meta property="og:title" content={category} />
</svelte:head>

<article>
	<h1>{category}</h1>
	<ul>
		{#each posts as post}
			<li>
				<h2>
					<a href={post.path}>
						{post.meta.title}
					</a>
				</h2>
				Published {post.meta.date}
			</li>
		{/each}
	</ul>
</article>
