Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device index #187

Open
mjamescompton opened this issue May 25, 2021 · 0 comments
Open

Add device index #187

mjamescompton opened this issue May 25, 2021 · 0 comments
Labels

Comments

@mjamescompton
Copy link
Contributor

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

@mjamescompton mjamescompton added this to the 2021 Q2 milestone May 25, 2021
@mjamescompton mjamescompton self-assigned this May 25, 2021
@github-actions github-actions bot added the needs/triage We still need to triage this label May 25, 2021
@mjamescompton mjamescompton removed the needs/triage We still need to triage this label May 25, 2021
@mjamescompton mjamescompton modified the milestones: 2021 Q2, 2021 Q3 May 26, 2021
@mjamescompton mjamescompton removed their assignment Jul 20, 2021
@mjamescompton mjamescompton removed this from the 2021 Q3 milestone Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant