Add Metas on Location page
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
import relativeTime from 'dayjs/plugin/relativeTime.js'
|
import relativeTime from 'dayjs/plugin/relativeTime.js'
|
||||||
import { getAssetUrlKey } from '$utils/helpers'
|
import { getAssetUrlKey } from '$utils/helpers'
|
||||||
// Components
|
// Components
|
||||||
|
import Metas from '$components/Metas.svelte'
|
||||||
import Button from '$components/atoms/Button.svelte'
|
import Button from '$components/atoms/Button.svelte'
|
||||||
import IconEarth from '$components/atoms/IconEarth.svelte'
|
import IconEarth from '$components/atoms/IconEarth.svelte'
|
||||||
import Image from '$components/atoms/Image.svelte'
|
import Image from '$components/atoms/Image.svelte'
|
||||||
@@ -85,6 +86,13 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<Metas
|
||||||
|
title="Houses Of {location.name}"
|
||||||
|
description="Discover {totalPhotos} beautiful homes from {location.name}, {location.country.name}"
|
||||||
|
image={getAssetUrlKey(latestPhoto.image.id, 'share-image')}
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
<main class="location-page">
|
<main class="location-page">
|
||||||
<section class="location-page__intro grid"
|
<section class="location-page__intro grid"
|
||||||
style="
|
style="
|
||||||
@@ -241,6 +249,7 @@
|
|||||||
website
|
website
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
country { name }
|
||||||
}
|
}
|
||||||
|
|
||||||
photos: photo (
|
photos: photo (
|
||||||
|
|||||||
Reference in New Issue
Block a user