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:
parent
4940c3703f
commit
5c4d6c88ae
2 changed files with 31 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue