Skip to content

Commit

Permalink
Use a better name for search attribute (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwickham authored Jan 17, 2025
1 parent 9dd0c5f commit ad42acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/algolia-add-custom-attribute.ts
Original file line number Diff line number Diff line change
@@ -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));

0 comments on commit ad42acd

Please sign in to comment.