externe link opent een aparte tab, zowel een gewone website als openstreetmaps

This commit is contained in:
fd0-nl 2023-06-13 22:10:04 +02:00 committed by GitHub
parent 985628f4bc
commit 3583f8afc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,10 +15,10 @@
{{ with .event_address }} {{ with .event_address }}
<h4>Locatie en adres</h4> <h4>Locatie en adres</h4>
<p><strong>{{ $event_location }}</strong><br>{{ with .street_address }}{{ . }}{{ end }}<br>{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}</p> <p><strong>{{ $event_location }}</strong><br>{{ with .street_address }}{{ . }}{{ end }}<br>{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}</p>
<a href="https://www.openstreetmap.org/search?query={{ with .street_address }}{{ . | urlquery }}{{ end }},{{ with .postal_code }}{{ . | urlquery }}{{ end }}{{ with .city }},%20{{ . | urlquery }}{{ end }}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "map-location-dot" "title" "Bekijk locatie op OpenStreetMap") }}</a> <a target="_blank" href="https://www.openstreetmap.org/search?query={{ with .street_address }}{{ . | urlquery }}{{ end }},{{ with .postal_code }}{{ . | urlquery }}{{ end }}{{ with .city }},%20{{ . | urlquery }}{{ end }}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "map-location-dot" "title" "Bekijk locatie op OpenStreetMap") }}</a>
{{ end }} {{ end }}
{{ with .link_external }} {{ with .link_external }}
<p>&raquo; <a href="{{ . }}" rel="nofollow">Meer informatie (externe link)</a></p> <p>&raquo; <a href="{{ . }}" target="_blank" rel="nofollow">Meer informatie (externe link)</a></p>
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}