We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eda60a5 commit 58cad0cCopy full SHA for 58cad0c
tools/algolia-add-custom-attribute.ts
@@ -1,7 +1,7 @@
1
const j = JSON.parse(Deno.readTextFileSync("_site/search.json"));
2
j.forEach((entry) => {
3
const crumb = entry.crumbs || [];
4
- entry.weight = crumb[0] === "Guide" ? 1 : 0;
+ entry.guide = crumb[0] === "Guide" ? 1 : 0;
5
})
6
Deno.writeTextFileSync("_site/search.json", JSON.stringify(j, null, 2));
7
0 commit comments