diff --git a/public/custom/seo-config.js b/public/custom/seo-config.js index 67513c8..0a37cc5 100644 --- a/public/custom/seo-config.js +++ b/public/custom/seo-config.js @@ -16,7 +16,12 @@ addressRegion: 'Niedersachsen', addressCountry: 'DE', 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: { '/': { diff --git a/public/custom/seo.js b/public/custom/seo.js index d9fcf23..643c78e 100644 --- a/public/custom/seo.js +++ b/public/custom/seo.js @@ -81,8 +81,8 @@ '@graph': [ { '@type': 'Person', - name: 'Leon Tonhäuser', - jobTitle: 'Sportfotograf', + name: biz.personName, + jobTitle: biz.personJobTitle, url: siteUrl, email: mail, telephone: phone @@ -123,9 +123,9 @@ '@context': 'https://schema.org', '@type': 'ImageObject', contentUrl: contentUrl, - creator: { '@type': 'Person', name: 'Leon Tonhäuser' }, - copyrightHolder: { '@type': 'Person', name: 'Leon Tonhäuser' }, - contentLocation: { '@type': 'Place', name: loc ? loc.charAt(0).toUpperCase() + loc.slice(1) : 'Niedersachsen' } + creator: { '@type': 'Person', name: biz.personName }, + copyrightHolder: { '@type': 'Person', name: biz.personName }, + contentLocation: { '@type': 'Place', name: loc ? loc.charAt(0).toUpperCase() + loc.slice(1) : biz.defaultLocation } }; } @@ -133,17 +133,15 @@ return { '@context': 'https://schema.org', '@type': 'Service', - serviceType: 'Fotografie', + serviceType: biz.serviceType, provider: { '@type': 'ProfessionalService', name: biz.name, url: siteUrl }, areaServed: biz.areaServed.map(function (n) { return { '@type': 'City', name: n }; }), hasOfferCatalog: { '@type': 'OfferCatalog', - name: 'Fotografie-Leistungen', - itemListElement: [ - { '@type': 'Offer', itemOffered: { '@type': 'Service', name: 'Eventfotografie' } }, - { '@type': 'Offer', itemOffered: { '@type': 'Service', name: 'Sportfotografie' } }, - { '@type': 'Offer', itemOffered: { '@type': 'Service', name: 'Reportagefotografie' } } - ] + name: biz.serviceType + '-Leistungen', + itemListElement: biz.services.map(function (s) { + return { '@type': 'Offer', itemOffered: { '@type': 'Service', name: s } }; + }) } }; }