feat: front matter in decks
This commit is contained in:
@@ -67,6 +67,9 @@ export async function loadCSV<T = Record<string, string>>(path: string): Promise
|
||||
const csvResult = result as CSV<T>;
|
||||
if (frontmatter) {
|
||||
csvResult.frontmatter = frontmatter;
|
||||
for(const each of result){
|
||||
Object.setPrototypeOf(each, frontmatter);
|
||||
}
|
||||
}
|
||||
|
||||
csvCache.set(path, result);
|
||||
|
||||
Reference in New Issue
Block a user