From 648e00d2446faa7ab04736e350f6d8988486feb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 28 Dec 2019 13:16:17 +0100 Subject: [PATCH] Location page --- .../location/[country]/[location].svelte | 86 +++++++++++++++++++ src/routes/location/[location].svelte | 54 ------------ 2 files changed, 86 insertions(+), 54 deletions(-) create mode 100644 src/routes/location/[country]/[location].svelte delete mode 100644 src/routes/location/[location].svelte diff --git a/src/routes/location/[country]/[location].svelte b/src/routes/location/[country]/[location].svelte new file mode 100644 index 0000000..eb6f0ef --- /dev/null +++ b/src/routes/location/[country]/[location].svelte @@ -0,0 +1,86 @@ + + + + + + Houses Of - Beautiful houses of {locationFull} + + +
+ + +
+

{locationFull}

+ {#if $currentLocation && $currentLocation.location.description} +

+ {$site.description}
+ Houses Of {$currentLocation.location.name} {$currentLocation.location.description} +

+ {/if} + {#if photos.length > 0} +

Updated

+ {/if} +
+ + {#if photos.length > 0} +
+ {#each photos as photo, index} +
+ +
+ {/each} +
+ {:else} +
+
+

No photos for {locationFull}

+
+
+ {/if} +
diff --git a/src/routes/location/[location].svelte b/src/routes/location/[location].svelte deleted file mode 100644 index eb98e84..0000000 --- a/src/routes/location/[location].svelte +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - Houses Of - Beautiful houses of {location.name}, {location.country.name} - - -
-
-

{location.name}, {location.country.name}

- {#if location.description} -

Houses Of {location.name} {location.description}

- {/if} -
- -
- {#each photos as photo, index (photo.id)} -
- -
- {/each} -
-