json ld + nav
This commit is contained in:
parent
a56cda851a
commit
33bf025fdb
@ -101,8 +101,12 @@
|
|||||||
|
|
||||||
const navigationLinks = [
|
const navigationLinks = [
|
||||||
{
|
{
|
||||||
routeKey: 'webagency',
|
routeKey: '',
|
||||||
label: 'menu.webagency'
|
label: 'menu.webagency',
|
||||||
|
subNav: [
|
||||||
|
{ routeKey: 'webagency', label: 'menu.menuAbout' },
|
||||||
|
{ routeKey: 'magazin', label: 'menu.menuMagazin' }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
routeKey: '',
|
routeKey: '',
|
||||||
|
|||||||
@ -7,6 +7,31 @@ import { storeToRefs } from 'pinia'
|
|||||||
import { i18nPages } from '../i18n/i18n-pages' // relativ zu deinem Composable-Pfad anpassen!
|
import { i18nPages } from '../i18n/i18n-pages' // relativ zu deinem Composable-Pfad anpassen!
|
||||||
|
|
||||||
export function usePageMeta () {
|
export function usePageMeta () {
|
||||||
|
|
||||||
|
const nearbyPlaces = [
|
||||||
|
'Herrsching', 'Starnberg', 'Landsberg am Lech',
|
||||||
|
'Weilheim', 'Fürstenfeldbruck', 'Kaufering',
|
||||||
|
'Andechs', 'Seefeld', 'Utting am Ammersee',
|
||||||
|
'Dießen am Ammersee', 'Schondorf am Ammersee',
|
||||||
|
'Wörthsee', 'Inning am Ammersee', 'Greifenberg',
|
||||||
|
'Pöcking', 'Weßling', 'Gauting', 'Gilching',
|
||||||
|
'Feldafing', 'Tutzing', 'Krailling', 'Germering', 'München',
|
||||||
|
'Erding', 'Augsburg', 'Wolfratshausen', 'Bad Tölz', 'Murnau',
|
||||||
|
'Grünwald', 'Planegg', 'Oberhaching', 'Geltendorf', 'Peißenberg',
|
||||||
|
'Bad Tölz', 'Schongau', 'Peißenberg', 'Schwabmünchen',
|
||||||
|
'Oberbayern', 'Bayern', 'Deutschland'
|
||||||
|
]
|
||||||
|
|
||||||
|
function makeAreaServedArray(names: string[]) {
|
||||||
|
return names.map(name => {
|
||||||
|
if (name === 'Deutschland') return { '@type': 'Country', name }
|
||||||
|
if (name === 'Bayern') return { '@type': 'State', name }
|
||||||
|
if (name === 'Oberbayern') return { '@type': 'AdministrativeArea', name }
|
||||||
|
return { '@type': 'Place', name }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const mainStore = useMainStore()
|
const mainStore = useMainStore()
|
||||||
const { companyinfo } = storeToRefs(mainStore)
|
const { companyinfo } = storeToRefs(mainStore)
|
||||||
@ -49,6 +74,11 @@ export function usePageMeta () {
|
|||||||
postalCode: companyinfo.value.postalcode,
|
postalCode: companyinfo.value.postalcode,
|
||||||
addressCountry: 'DE'
|
addressCountry: 'DE'
|
||||||
},
|
},
|
||||||
|
geo: {
|
||||||
|
'@type': 'GeoCoordinates',
|
||||||
|
latitude: 47.9975,
|
||||||
|
longitude: 11.1864
|
||||||
|
},
|
||||||
openingHoursSpecification: [
|
openingHoursSpecification: [
|
||||||
{
|
{
|
||||||
'@type': 'OpeningHoursSpecification',
|
'@type': 'OpeningHoursSpecification',
|
||||||
@ -56,7 +86,8 @@ export function usePageMeta () {
|
|||||||
opens: '09:00',
|
opens: '09:00',
|
||||||
closes: '17:00'
|
closes: '17:00'
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
areaServed: makeAreaServedArray(nearbyPlaces)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Falls Home oder References: ergänze das Rating (2 Bewertungen mit 5 Sternen)
|
// Falls Home oder References: ergänze das Rating (2 Bewertungen mit 5 Sternen)
|
||||||
|
|||||||
@ -4,6 +4,8 @@
|
|||||||
"upperBavaria": "Oberbayern",
|
"upperBavaria": "Oberbayern",
|
||||||
"menu": {
|
"menu": {
|
||||||
"webagency": "Webagentur",
|
"webagency": "Webagentur",
|
||||||
|
"menuAbout": "Über uns",
|
||||||
|
"menuMagazin": "Wissenswertes",
|
||||||
"services": "Leistungen",
|
"services": "Leistungen",
|
||||||
"sectors": "Branchen",
|
"sectors": "Branchen",
|
||||||
"menuCms": "Headless Content-Management-System (CMS)",
|
"menuCms": "Headless Content-Management-System (CMS)",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user