wip(org): Added showcase index page
This commit is contained in:
parent
cb01cd6b8e
commit
087d5f985c
2 changed files with 118 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue