mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
feat: init
This commit is contained in:
6
articles/src/index.ts
Normal file
6
articles/src/index.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user