From 01ad45f92921b20696f5947a2ef3279a5869bca8 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 15 Aug 2023 07:55:57 +0200 Subject: [PATCH] Include $ frontmatter attributes in page meta --- plugs/core/page_links.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugs/core/page_links.ts b/plugs/core/page_links.ts index bc3b488d..2315f246 100644 --- a/plugs/core/page_links.ts +++ b/plugs/core/page_links.ts @@ -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); }