You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an index number to device to control device order on the website.
Why do we need this?
We need to control the order the devices are displayed.
What is already there? What do you see now?
Devices are order alphabetically.
What is missing? What do you want to see?
Controlled at the website level, the lower the device index the higher in the order the device shows up per page.
How do you propose to implement this?
A json file containing device id and a number, while running make go.build add the number as hugo front matter. A default number should be used for all devices that don't have an index. It should put the devices around the middle of the index.
Summary
Add an index number to device to control device order on the website.
Why do we need this?
We need to control the order the devices are displayed.
What is already there? What do you see now?
Devices are order alphabetically.
What is missing? What do you want to see?
Controlled at the website level, the lower the device index the higher in the order the device shows up per page.
How do you propose to implement this?
A json file containing device id and a number, while running
make go.build
add the number as hugo front matter. A default number should be used for all devices that don't have an index. It should put the devices around the middle of the index.Then use hugo weights to to sort https://gohugo.io/templates/lists/#by-weight
Can you do this yourself and submit a Pull Request?
yes
The text was updated successfully, but these errors were encountered: