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; pageMeta[k] = v;
} }
// Don't index meta data starting with $ // Don't index meta data starting with $
for (const key in pageMeta) { // for (const key in pageMeta) {
if (key.startsWith("$")) { // if (key.startsWith("$")) {
delete pageMeta[key]; // delete pageMeta[key];
} // }
} // }
// console.log("Extracted page meta data", pageMeta); // console.log("Extracted page meta data", pageMeta);
await index.set(name, "meta:", pageMeta); await index.set(name, "meta:", pageMeta);
} }