Adding more sections to the gear list

Also changing over from a root level object to a root level list for `/gear/gear.json`
This commit is contained in:
April Eaton 2025-12-17 13:22:08 +01:00
parent 4940c3703f
commit 5c4d6c88ae
2 changed files with 31 additions and 5 deletions

View file

@ -6,7 +6,7 @@
*
* @typedef {{name: string, id: string, values: GearListItem[]}} GearListSection
*
* @typedef {{bondage: GearListSection}} GearList
* @typedef {GearListSection[]} GearList
*/
/**
@ -87,7 +87,7 @@ async function generateGearListArticle(position) {
divider.setAttribute("class", "gl-divider");
bondageItems.appendChild(divider);
for (const section of Object.values(list)) {
for (const section of list) {
let listSection = buildSection(section);
bondageItems.appendChild(listSection);