mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-26 07:33:48 +01:00
feat: recover embed code
This commit is contained in:
1 parent
cee082ab67
commit
9daab37ba1
16 files changed
+746
No files matched your search
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import type { GetStaticPaths } from 'astro';
|
||||
import { configurations } from '../../../../constants/embeds';
|
||||
import BaseLayout from '../../../../layouts/BaseLayout.astro';
|
||||
import { Page } from './_index';
|
||||
|
||||
export const getStaticPaths = (() => {
|
||||
return Object.keys(configurations).map((embed) => ({
|
||||
params: { embed: embed as keyof typeof configurations },
|
||||
}));
|
||||
}) satisfies GetStaticPaths;
|
||||
---
|
||||
|
||||
<BaseLayout>
|
||||
<Page client:load embed={Astro.params.embed} />
|
||||
</BaseLayout>
|
||||
Reference in new issue
Block a user