From d6c03cbe41e17f9733322311d11961217906db2d Mon Sep 17 00:00:00 2001 From: MinamiFunakoshiTR Date: Wed, 26 Mar 2025 09:05:50 -0700 Subject: [PATCH] fixes assets handling --- src/components/PhotoPack/PhotoPack.mdx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/PhotoPack/PhotoPack.mdx b/src/components/PhotoPack/PhotoPack.mdx index c8bb19c4..dd1fecc5 100644 --- a/src/components/PhotoPack/PhotoPack.mdx +++ b/src/components/PhotoPack/PhotoPack.mdx @@ -96,7 +96,6 @@ gap: 10 # Optional; must be a number. @@ -104,21 +103,21 @@ gap: 10 # Optional; must be a number. {#each content.blocks as block} {#if block.type === 'photo-pack'} - ({ + ...img, + src: `${assets}/${img.src}`, + }))} layouts={[ { breakpoint: 750, rows: [2, 3] }, { breakpoint: 450, rows: [1, 2, 2] }, ]} /> - - {/if} {/each} ```