Skip to content

Commit 58cad0c

Browse files
Use a better name for search attribute (#1547) (#1548)
(cherry picked from commit ad42acd) Co-authored-by: Charlotte Wickham <[email protected]>
1 parent eda60a5 commit 58cad0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const j = JSON.parse(Deno.readTextFileSync("_site/search.json"));
22
j.forEach((entry) => {
33
const crumb = entry.crumbs || [];
4-
entry.weight = crumb[0] === "Guide" ? 1 : 0;
4+
entry.guide = crumb[0] === "Guide" ? 1 : 0;
55
})
66
Deno.writeTextFileSync("_site/search.json", JSON.stringify(j, null, 2));
77

0 commit comments

Comments
 (0)