-
- {#each images as image}
-
-
-
-
-
- {#if credit && image.credit}
- {@render credit(image)}
-
-
- {:else if image.credit}
- {image.credit}
- {/if}
-
-
-
- {/each}
-
-
- {#if images[activeImageIndex].caption}
- {@const activePhoto = images[activeImageIndex]}
-
-
-
- {#if caption && activePhoto.caption}
- {#key activeImageIndex}
- {@render caption(activePhoto)}
- {/key}
-
-
- {:else if activePhoto.caption}
- {#key activeImageIndex}
-
- {activePhoto.caption}
-
- {/key}
- {/if}
-
-
- {/if}
-
-
-
-
-
-
-
-
-