feat: init

This commit is contained in:
Morten Olsen
2022-12-06 09:12:53 +01:00
commit 3f5e941446
115 changed files with 13148 additions and 0 deletions

6
articles/src/index.ts Normal file
View File

@@ -0,0 +1,6 @@
import { DocumentResult } from '@morten-olsen/goodwrites';
const context = (require as any).context('../content', true, /article\.yml$/)
const getArticles = () => context.keys().map((key: string) => context(key)) as DocumentResult[];
export { getArticles };