mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-28 16:45:32 +00:00
42 lines
2.2 KiB
Plaintext
42 lines
2.2 KiB
Plaintext
{{ if .model.SelectedPlace }}
|
|
{{ $place := .model.SelectedPlace.Place }}
|
|
<title>{{ if $place.Names }}{{ index $place.Names 0 }}{{ else }}{{ $place.ID }}{{ end }} - KGPZ</title>
|
|
<meta name="description" content="Informationen zu {{ if $place.Names }}{{ index $place.Names 0 }}{{ else }}{{ $place.ID }}{{ end }} in der Königsberger Gelehrten und Politischen Zeitung.">
|
|
<meta name="keywords" content="{{ if $place.Names }}{{ index $place.Names 0 }}{{ else }}{{ $place.ID }}{{ end }}, Ort, KGPZ, Königsberg, Zeitung">
|
|
|
|
<!-- Open Graph tags for social media -->
|
|
<meta property="og:title" content="{{ if $place.Names }}{{ index $place.Names 0 }}{{ else }}{{ $place.ID }}{{ end }} - KGPZ">
|
|
<meta property="og:description" content="Informationen zu {{ if $place.Names }}{{ index $place.Names 0 }}{{ else }}{{ $place.ID }}{{ end }} in der Königsberger Gelehrten und Politischen Zeitung.">
|
|
<meta property="og:type" content="article">
|
|
<meta property="og:url" content="/ort/{{ $place.ID }}">
|
|
|
|
<!-- JSON-LD structured data -->
|
|
{{ $geonames := GetGeonames $place.Geo }}
|
|
{{ if ne $geonames nil }}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "Place",
|
|
"name": "{{ if $place.Names }}{{ index $place.Names 0 }}{{ else }}{{ $place.ID }}{{ end }}",
|
|
"description": "Historischer Ort erwähnt in der Königsberger Gelehrten und Politischen Zeitung"{{ if or (and (ne $geonames.Lat "") (ne $geonames.Lng "")) (ne $geonames.CountryName "") (ne $place.Geo "") }},{{ end }}
|
|
{{ if and (ne $geonames.Lat "") (ne $geonames.Lng "") }}
|
|
"geo": {
|
|
"@type": "GeoCoordinates",
|
|
"latitude": {{ $geonames.Lat }},
|
|
"longitude": {{ $geonames.Lng }}
|
|
}{{ if or (ne $geonames.CountryName "") (ne $place.Geo "") }},{{ end }}
|
|
{{ end }}
|
|
{{ if ne $geonames.CountryName "" }}
|
|
"addressCountry": "{{ $geonames.CountryName }}"{{ if ne $place.Geo "" }},{{ end }}
|
|
{{ end }}
|
|
{{ if ne $place.Geo "" }}
|
|
"sameAs": "{{ $place.Geo }}"
|
|
{{ end }}
|
|
}
|
|
</script>
|
|
{{ end }}
|
|
{{ else }}
|
|
<title>Orte - KGPZ</title>
|
|
<meta name="description" content="Übersicht aller Orte in der Königsberger Gelehrten und Politischen Zeitung.">
|
|
<meta name="keywords" content="Orte, Geografie, KGPZ, Königsberg, Zeitung">
|
|
{{ end }} |