Include $ frontmatter attributes in page meta

pull/503/head
Zef Hemel 2023-08-15 07:55:57 +02:00
parent 45dfa46908
commit 01ad45f929
1 changed files with 5 additions and 5 deletions

View File

@ -33,11 +33,11 @@ export async function indexLinks({ name, tree }: IndexTreeEvent) {
pageMeta[k] = v;
}
// Don't index meta data starting with $
for (const key in pageMeta) {
if (key.startsWith("$")) {
delete pageMeta[key];
}
}
// for (const key in pageMeta) {
// if (key.startsWith("$")) {
// delete pageMeta[key];
// }
// }
// console.log("Extracted page meta data", pageMeta);
await index.set(name, "meta:", pageMeta);
}