From df4980fc6bcc6a792445615b40aa963e1aef707e Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 10 Aug 2022 09:26:07 +0200 Subject: [PATCH] Don't index page meta data starting with $ --- packages/plugs/core/page.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/plugs/core/page.ts b/packages/plugs/core/page.ts index 3c280a4..7278859 100644 --- a/packages/plugs/core/page.ts +++ b/packages/plugs/core/page.ts @@ -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); }