fix: Person-/Service-Strings in BUSINESS-Config ziehen (kein Hardcoding)
- seo.js: jobTitle, name, addressRegion, serviceType aus cfg.BUSINESS lesen - seo-config.js: BUSINESS um personName, personJobTitle, defaultLocation, serviceType, services ergänzen - 3 Services: Sportfotografie, Eventfotografie, Reportagefotografie - Hardcoding-Grep liefert 0 Treffer in seo.js
This commit is contained in:
1 parent
5c295621a2
commit
1f0909fc0b
2 files changed
+16
-13
No files matched your search
@@ -16,7 +16,12 @@
|
|||||||
addressRegion: 'Niedersachsen',
|
addressRegion: 'Niedersachsen',
|
||||||
addressCountry: 'DE',
|
addressCountry: 'DE',
|
||||||
areaServed: ['Uelzen', 'Lüneburg', 'Hamburg', 'Bad Bevensen', 'Winsen (Luhe)'],
|
areaServed: ['Uelzen', 'Lüneburg', 'Hamburg', 'Bad Bevensen', 'Winsen (Luhe)'],
|
||||||
priceRange: '€€'
|
priceRange: '€€',
|
||||||
|
personName: 'Leon Tonhäuser',
|
||||||
|
personJobTitle: 'Sportfotograf',
|
||||||
|
defaultLocation: 'Niedersachsen',
|
||||||
|
serviceType: 'Fotografie',
|
||||||
|
services: ['Eventfotografie', 'Sportfotografie', 'Reportagefotografie']
|
||||||
},
|
},
|
||||||
PAGES: {
|
PAGES: {
|
||||||
'/': {
|
'/': {
|
||||||
|
|||||||
+10
-12
@@ -81,8 +81,8 @@
|
|||||||
'@graph': [
|
'@graph': [
|
||||||
{
|
{
|
||||||
'@type': 'Person',
|
'@type': 'Person',
|
||||||
name: 'Leon Tonhäuser',
|
name: biz.personName,
|
||||||
jobTitle: 'Sportfotograf',
|
jobTitle: biz.personJobTitle,
|
||||||
url: siteUrl,
|
url: siteUrl,
|
||||||
email: mail,
|
email: mail,
|
||||||
telephone: phone
|
telephone: phone
|
||||||
@@ -123,9 +123,9 @@
|
|||||||
'@context': 'https://schema.org',
|
'@context': 'https://schema.org',
|
||||||
'@type': 'ImageObject',
|
'@type': 'ImageObject',
|
||||||
contentUrl: contentUrl,
|
contentUrl: contentUrl,
|
||||||
creator: { '@type': 'Person', name: 'Leon Tonhäuser' },
|
creator: { '@type': 'Person', name: biz.personName },
|
||||||
copyrightHolder: { '@type': 'Person', name: 'Leon Tonhäuser' },
|
copyrightHolder: { '@type': 'Person', name: biz.personName },
|
||||||
contentLocation: { '@type': 'Place', name: loc ? loc.charAt(0).toUpperCase() + loc.slice(1) : 'Niedersachsen' }
|
contentLocation: { '@type': 'Place', name: loc ? loc.charAt(0).toUpperCase() + loc.slice(1) : biz.defaultLocation }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,17 +133,15 @@
|
|||||||
return {
|
return {
|
||||||
'@context': 'https://schema.org',
|
'@context': 'https://schema.org',
|
||||||
'@type': 'Service',
|
'@type': 'Service',
|
||||||
serviceType: 'Fotografie',
|
serviceType: biz.serviceType,
|
||||||
provider: { '@type': 'ProfessionalService', name: biz.name, url: siteUrl },
|
provider: { '@type': 'ProfessionalService', name: biz.name, url: siteUrl },
|
||||||
areaServed: biz.areaServed.map(function (n) { return { '@type': 'City', name: n }; }),
|
areaServed: biz.areaServed.map(function (n) { return { '@type': 'City', name: n }; }),
|
||||||
hasOfferCatalog: {
|
hasOfferCatalog: {
|
||||||
'@type': 'OfferCatalog',
|
'@type': 'OfferCatalog',
|
||||||
name: 'Fotografie-Leistungen',
|
name: biz.serviceType + '-Leistungen',
|
||||||
itemListElement: [
|
itemListElement: biz.services.map(function (s) {
|
||||||
{ '@type': 'Offer', itemOffered: { '@type': 'Service', name: 'Eventfotografie' } },
|
return { '@type': 'Offer', itemOffered: { '@type': 'Service', name: s } };
|
||||||
{ '@type': 'Offer', itemOffered: { '@type': 'Service', name: 'Sportfotografie' } },
|
})
|
||||||
{ '@type': 'Offer', itemOffered: { '@type': 'Service', name: 'Reportagefotografie' } }
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user