mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add faq structured data to kind pages
This commit is contained in:
parent
f1bf513bc3
commit
d604c50d3a
1 changed files with 19 additions and 1 deletions
|
|
@ -146,6 +146,22 @@ export default {
|
||||||
description () {
|
description () {
|
||||||
return `Check the the latest reported support status of ${this.pluralLabel || this.category.label} on Apple Silicon and Apple M1 Processors. `
|
return `Check the the latest reported support status of ${this.pluralLabel || this.category.label} on Apple Silicon and Apple M1 Processors. `
|
||||||
},
|
},
|
||||||
|
structuredData () {
|
||||||
|
return {
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "FAQPage",
|
||||||
|
"mainEntity": this.categoryAppList.map( app => {
|
||||||
|
return {
|
||||||
|
"@type": "Question",
|
||||||
|
"name": `Does ${app.name} work on Apple Silicon and Apple M1 Macs?`,
|
||||||
|
"acceptedAnswer": {
|
||||||
|
"@type": "Answer",
|
||||||
|
"text": app.text
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
head() {
|
head() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -173,7 +189,9 @@ export default {
|
||||||
'property': 'twitter:url',
|
'property': 'twitter:url',
|
||||||
'content': `${process.env.URL}${this.$nuxt.$route.path}`
|
'content': `${process.env.URL}${this.$nuxt.$route.path}`
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
|
__dangerouslyDisableSanitizers: ['script'],
|
||||||
|
script: [{ innerHTML: JSON.stringify(this.structuredData), type: 'application/ld+json' }]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue