Skip to content

Add device index  #187

@mjamescompton

Description

@mjamescompton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions