Skip to content

Record a sky camera around the clock, keep the footage on your own disk, and find what flew past.

444 B
Raw Blame
---
import { getCollection, render } from 'astro:content';
import Docs from '../layouts/Docs.astro';

export async function getStaticPaths() {
  const pages = await getCollection('docs');
  return pages.map(page => ({ params: { slug: page.id === 'index' ? undefined : page.id }, props: { page } }));
}
const { page } = Astro.props;
const { Content, headings } = await render(page);
---

<Docs page={page} headings={headings}><Content /></Docs>