diff --git a/src/routes/location/[country]/[location].svelte b/src/routes/location/[country]/[location].svelte index 880e946..237f73c 100644 --- a/src/routes/location/[country]/[location].svelte +++ b/src/routes/location/[country]/[location].svelte @@ -17,8 +17,10 @@ - Houses Of - Beautiful houses of {locationFull} + Houses Of - Beautiful houses of {location.name}, {location.country.name} @@ -120,27 +156,37 @@ - {#each photos as photo, index} + {#each paginatedPhotos as photo, index} {/each} - {#if photos.length} - + {#if photos.length && currentIndex <= photos.length} + pageTranslate = pageTranslate - ((100 / pagesTotal) * 0.666)} + on:mouseleave={() => pageTranslate = pageTranslate + ((100 / pagesTotal) * 0.666)} + > page - - 3 - 2 - 1 + + {#each pages as page} + {page} + {/each} /{pagesTotal} - See more photos + See more photos + + {:else} + + That's all folks! + Come back later to check out new photos of {location.name} + + {/if} - {/if}
See more photos
Come back later to check out new photos of {location.name}