diff --git a/tools/algolia-add-custom-attribute.ts b/tools/algolia-add-custom-attribute.ts index d516338bb9..85791e85a0 100644 --- a/tools/algolia-add-custom-attribute.ts +++ b/tools/algolia-add-custom-attribute.ts @@ -1,7 +1,7 @@ const j = JSON.parse(Deno.readTextFileSync("_site/search.json")); j.forEach((entry) => { const crumb = entry.crumbs || []; - entry.weight = crumb[0] === "Guide" ? 1 : 0; + entry.guide = crumb[0] === "Guide" ? 1 : 0; }) Deno.writeTextFileSync("_site/search.json", JSON.stringify(j, null, 2)); \ No newline at end of file