ui: Prefix $FILES$ by base path
This commit is contained in:
parent
4cce95245e
commit
01a9bb2e94
3 changed files with 11 additions and 5 deletions
|
|
@ -1,4 +1,6 @@
|
|||
<script>
|
||||
import { base } from '$app/paths';
|
||||
|
||||
import {
|
||||
Carousel,
|
||||
CarouselItem,
|
||||
|
|
@ -16,10 +18,10 @@
|
|||
<CarouselItem bind:activeIndex={activePartner} itemIndex={index} class="h-100 text-end">
|
||||
{#if partner.href}
|
||||
<a href="{partner.href}" target="_blank" class="h-100">
|
||||
<img src={partner.img.replace('$FILES$', '/files')} class="h-100" alt={partner.alt}>
|
||||
<img src={partner.img.replace('$FILES$', base + '/files')} class="h-100" alt={partner.alt}>
|
||||
</a>
|
||||
{:else}
|
||||
<img src={partner.img.replace('$FILES$', '/files')} class="h-100" alt={partner.alt}>
|
||||
<img src={partner.img.replace('$FILES$', base + '/files')} class="h-100" alt={partner.alt}>
|
||||
{/if}
|
||||
</CarouselItem>
|
||||
{/each}
|
||||
|
|
|
|||
Reference in a new issue