fix a couple of types in FeaturePhoto
This commit is contained in:
parent
920f0f85f4
commit
a233daa83b
2 changed files with 8 additions and 10 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue