diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f681ebd..cfcbfd7 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -12,9 +12,6 @@ let photos = [ { src: "https://ik.imagekit.io/ari/2014dublin02", alt: "Dublin 02" }, ]; -// Shuffle array -photos.sort(() => Math.random() - 0.5); - // Reactive variable for the current main image let currentPhoto = writable(photos[0]); @@ -26,7 +23,6 @@ const updateMainPhoto = (photo) => { }; - @@ -47,7 +43,7 @@ const updateMainPhoto = (photo) => {
- {#each photos as photo} + {#each photos as photo (photo.alt)}