feat: split components (#1530)

This commit is contained in:
Himself65
2023-03-10 23:15:19 -06:00
committed by GitHub
parent a795000363
commit 9a04a1e34f
23 changed files with 1925 additions and 130 deletions

View File

@@ -98,7 +98,15 @@ export const getStaticProps: GetStaticProps<
const fs = await import('node:fs/promises');
const path = await import('node:path');
const markdown: string = await fs.readFile(
path.resolve(process.cwd(), 'src', 'templates', `${name}.md`),
path.resolve(
process.cwd(),
'..',
'..',
'packages',
'templates',
'src',
`${name}.md`
),
'utf8'
);
const title = markdown