---
import { getCollection } from 'astro:content';
import Layout from '../../layouts/ArchivePostLayout.astro';

export async function getStaticPaths() {
	const arreleases = await getCollection('archivedreleases');

	return arreleases.map((arrelease) => ({
		params: { slug: arrelease.slug },
		props: { arrelease },
	}));
}

const { arrelease } = Astro.props;

const { Content } = await arrelease.render();
---

<Layout {arrelease}>
	<Content />
</Layout>
