Add link to see map on House location

This commit is contained in:
2022-06-27 11:31:44 +02:00
parent 0ce305480f
commit 453583c189
3 changed files with 16 additions and 2 deletions

View File

@@ -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')}>