1
0
Fork 0

wip(org): Added showcase index page

This commit is contained in:
Joost De Cock 2022-05-30 18:58:01 +02:00
parent cb01cd6b8e
commit 087d5f985c
2 changed files with 118 additions and 1 deletions

View file

@ -78,7 +78,7 @@ export const capitalize = string => string.charAt(0).toUpperCase() + string.slic
export const strapiImage = (img, sizes=['thumbnail', 'xlarge', 'large', 'medium', 'small', 'xsmall']) => {
const image = {
caption: img.caption,
caption: img?.caption || '',
w: img.width,
h: img.height,
url: img.url,