---
export const prerender = true;

import {getCollection} from 'astro:content'

export async function getStaticPaths() {
	const archives = await getCollection('archives');
	return archives.map(p => ({
    params: { slug: p.slug }, props: { p },
  	}));
}

const { p } = Astro.props;
const { Content } = await p.render();

---

<Content />

