1
0

Don't index page meta data starting with $

This commit is contained in:
Zef Hemel 2022-08-10 09:26:07 +02:00
parent 47faea2289
commit df4980fc6b

View File

@ -49,6 +49,12 @@ export async function indexLinks({ name, tree }: IndexTreeEvent) {
let pageMeta = extractMeta(tree);
if (Object.keys(pageMeta).length > 0) {
console.log("Extracted page meta data", pageMeta);
// Don't index meta data starting with $
for (let key in pageMeta) {
if (key.startsWith("$")) {
delete pageMeta[key];
}
}
await set(name, "meta:", pageMeta);
}