okay
This commit is contained in:
@@ -42,12 +42,12 @@ export function organizationSchema() {
|
||||
sameAs: [
|
||||
'https://twitter.com/qrmaster',
|
||||
],
|
||||
contactPoint: {
|
||||
contactPoint: [{
|
||||
'@type': 'ContactPoint',
|
||||
contactType: 'Customer Support',
|
||||
email: 'support@qrmaster.net',
|
||||
availableLanguage: ['en', 'de'],
|
||||
},
|
||||
}],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -163,8 +163,8 @@ export function breadcrumbSchema(items: { name: string; url: string }[]) {
|
||||
};
|
||||
}
|
||||
|
||||
export function softwareApplicationSchema() {
|
||||
return {
|
||||
export function softwareApplicationSchema(aggregateRating?: AggregateRating) {
|
||||
const schema: any = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'SoftwareApplication',
|
||||
name: 'QR Master',
|
||||
@@ -179,6 +179,18 @@ export function softwareApplicationSchema() {
|
||||
'@id': `${SITE_URL}/#organization`,
|
||||
}
|
||||
};
|
||||
|
||||
if (aggregateRating) {
|
||||
schema.aggregateRating = {
|
||||
'@type': 'AggregateRating',
|
||||
ratingValue: aggregateRating.ratingValue,
|
||||
reviewCount: aggregateRating.reviewCount,
|
||||
bestRating: aggregateRating.bestRating,
|
||||
worstRating: aggregateRating.worstRating
|
||||
};
|
||||
}
|
||||
|
||||
return schema;
|
||||
}
|
||||
|
||||
export function authorPageSchema(author: AuthorProfile, posts?: BlogPost[]) {
|
||||
@@ -253,7 +265,12 @@ export function reviewSchema(testimonial: Testimonial) {
|
||||
'@type': 'SoftwareApplication',
|
||||
name: 'QR Master',
|
||||
applicationCategory: 'BusinessApplication',
|
||||
operatingSystem: 'Web Browser'
|
||||
operatingSystem: 'Web Browser',
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
price: '0',
|
||||
priceCurrency: 'EUR'
|
||||
}
|
||||
},
|
||||
reviewRating: {
|
||||
'@type': 'Rating',
|
||||
@@ -276,6 +293,11 @@ export function aggregateRatingSchema(aggregateRating: AggregateRating) {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Product',
|
||||
name: 'QR Master',
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
price: '0',
|
||||
priceCurrency: 'EUR'
|
||||
},
|
||||
aggregateRating: {
|
||||
'@type': 'AggregateRating',
|
||||
ratingValue: aggregateRating.ratingValue,
|
||||
|
||||
Reference in New Issue
Block a user