add: wikibonsai changes.

This commit is contained in:
manunamz
2023-10-03 10:58:17 -04:00
parent 8e2152a560
commit f87f774b2a
26 changed files with 4811 additions and 54 deletions
+21
View File
@@ -0,0 +1,21 @@
---
import { type CollectionEntry, getCollection } from 'astro:content';
import Entry from '../../layouts/Entry.astro';
export async function getStaticPaths() {
const entries = await getCollection('entries');
return entries.map((entry) => ({
params: { slug: entry.slug },
props: entry,
}));
}
type Props = CollectionEntry<'entries'>;
const entry = Astro.props;
const { Content, remarkPluginFrontmatter } = await entry.render();
entry.data.frontmatter = remarkPluginFrontmatter;
---
<Entry {...entry.data}>
<Content />
</Entry>