mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Fix webready assets
This commit is contained in:
parent
0179aa10f0
commit
c514d7dc69
@ -38,6 +38,8 @@ module.exports = exports = async function loadPublicFiles () {
|
|||||||
[KIND.ASSET]: subassets,
|
[KIND.ASSET]: subassets,
|
||||||
} = groupBy(subset, 'kind');
|
} = groupBy(subset, 'kind');
|
||||||
|
|
||||||
|
const webready = subassets && keyBy(subassets.map((a) => a.webready()), 'name');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
all: subset,
|
all: subset,
|
||||||
get titlecard () { return getTitlecard; },
|
get titlecard () { return getTitlecard; },
|
||||||
@ -45,7 +47,7 @@ module.exports = exports = async function loadPublicFiles () {
|
|||||||
return subpages;
|
return subpages;
|
||||||
},
|
},
|
||||||
get assets () {
|
get assets () {
|
||||||
return keyBy(subassets, 'name');
|
return webready;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user