Add link to see map on House location
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
export let ratio: number
|
||||
export let date: string = undefined
|
||||
export let city: string = undefined
|
||||
export let location: string
|
||||
</script>
|
||||
|
||||
<div class="house grid">
|
||||
@@ -25,7 +26,10 @@
|
||||
</h2>
|
||||
<p class="info text-info">
|
||||
{#if city}
|
||||
<Icon class="icon" icon="map-pin" label="Map pin" /> {city} <span class="sep">·</span>
|
||||
<a href="https://www.openstreetmap.org/search?query={title}, {city} {location}" target="_blank" rel="noopener noreferrer">
|
||||
<Icon class="icon" icon="map-pin" label="Map pin" /> {city}
|
||||
</a>
|
||||
<span class="sep">·</span>
|
||||
{/if}
|
||||
{#if date}
|
||||
<time datetime={dayjs(date).format('YYYY-MM-DD')}>
|
||||
|
||||
Reference in New Issue
Block a user