chore: support proper badge collection sorting
This commit is contained in:
parent
e45261bb31
commit
05cd107af6
3 changed files with 4 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "20.9.3",
|
||||
"version": "20.9.4",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "coryd.dev",
|
||||
"version": "20.9.3",
|
||||
"version": "20.9.4",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@cdransf/api-text": "^1.4.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "20.9.3",
|
||||
"version": "20.9.4",
|
||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
@ -20,7 +20,7 @@ const fetchAllBadges = async () => {
|
|||
const transformedData = data.map(badge => ({
|
||||
...badge,
|
||||
image: badge['image']['filename_disk'],
|
||||
}))
|
||||
})).sort((a, b) => a.sort - b.sort)
|
||||
|
||||
return transformedData
|
||||
}
|
||||
|
|
Reference in a new issue