-
Notifications
You must be signed in to change notification settings - Fork 395
Open
Description
Currently, projects have a weight
attribute. This may have been used across the site at some point, but presently it's used in a single place: /our-work
.
The effect of weighting projects and having a weighted sort is that it effectively pins certain projects.
The implementation is overly complex for the effect. But we do need the effect to remain consistent — the migration should result in no visible content changes.
I suspect the right way to do this is to:
- for the 6 projects with the highest weights, replace with
pin: {rank, 1 being highest}
- run a pre-build validation that there are 6 pinned projects with unique numbers
- remove all other
weight:
attributes from the code - update template code in
/our-work
to render all this correctly
### Acceptance criteria
- [ ] The same projects show up in /our-work
- [ ] There is documentation near the implementation that explains what it does
Metadata
Metadata
Assignees
Labels
No labels