mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-30 09:35:31 +00:00
Refined orte
This commit is contained in:
8
views/routes/ort/detail/body.gohtml
Normal file
8
views/routes/ort/detail/body.gohtml
Normal file
@@ -0,0 +1,8 @@
|
||||
<!-- Single Place Detail View -->
|
||||
<div class="max-w-7xl mx-auto px-8 py-8">
|
||||
<div class="bg-white px-6 py-6 rounded w-full lg:min-w-[800px] xl:min-w-[900px]">
|
||||
{{ template "_back_navigation" . }}
|
||||
{{ template "_place_header" .model.SelectedPlace }}
|
||||
{{ template "_place_pieces" .model.SelectedPlace }}
|
||||
</div>
|
||||
</div>
|
||||
36
views/routes/ort/detail/head.gohtml
Normal file
36
views/routes/ort/detail/head.gohtml
Normal file
@@ -0,0 +1,36 @@
|
||||
{{ $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 }}
|
||||
Reference in New Issue
Block a user