fix a couple of types in FeaturePhoto

This commit is contained in:
deaxmachina 2022-12-08 17:24:19 +00:00
parent 920f0f85f4
commit a233daa83b
2 changed files with 8 additions and 10 deletions

View file

@ -8,7 +8,7 @@ A full-width photo inside the text well.
<FeaturePhoto
src="{`${assets}/images/myImage.jpg`}"
alt="Some alt text"
altText="Some alt text"
caption="A caption"
lazy="{false}"
width="normal"

View file

@ -24,17 +24,15 @@ Caption: Carcharodon carcharias - REUTERS
{#if block.Type === 'text'}
<!-- ... other blocks -->
<!-- Copy/paste into your blocks loop! -->
<!-- Copy/paste into your blocks loop! -->
{:else if block.Type === 'photo'}
<FeautrePhoto
width={block.Width}
src={`${assets}/${block.Src}`}
altText={block.AltText}
caption={block.Caption}
<FeaturePhoto
width="{block.Width}"
src="{`${assets}/${block.Src}`}"
altText="{block.AltText}"
caption="{block.Caption}"
/>
<!-- END copy/paste -->
<!-- END copy/paste -->
{/if}
{/each}
```