Add meta details for social

This commit is contained in:
Sam Carlton 2020-12-01 21:59:55 -06:00
parent be3046619a
commit a6c9f61546
4 changed files with 100 additions and 33 deletions

View file

@ -78,14 +78,30 @@ export default {
head() { head() {
return { return {
title: `Does ${this.app.name} work on Apple Silicon?`, title: `Does ${this.app.name} work on Apple Silicon?`,
// meta: [ meta: [
// // hid is used as unique identifier. Do not use `vmid` for it as it will not work // hid is used as unique identifier. Do not use `vmid` for it as it will not work
// { {
// hid: 'description', 'hid': 'description',
// name: 'description', 'name': 'description',
// content: 'My custom description' 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Processors`
// } },
// ]
// Twitter Card
{
'hid': 'twitter:title',
'property': 'twitter:title',
'content': `Does ${this.app.name} work on Apple Silicon?`
},
{
'hid': 'twitter:description',
'property': 'twitter:description',
'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Processors`
},
{
'property': 'twitter:url',
'content': `${process.env.URL}${this.$nuxt.$route.path}`
},
]
} }
} }
} }

View file

@ -56,14 +56,30 @@ export default {
head() { head() {
return { return {
title: `Does ${this.app.name} work on Apple Silicon?`, title: `Does ${this.app.name} work on Apple Silicon?`,
// meta: [ meta: [
// // hid is used as unique identifier. Do not use `vmid` for it as it will not work // hid is used as unique identifier. Do not use `vmid` for it as it will not work
// { {
// hid: 'description', 'hid': 'description',
// name: 'description', 'name': 'description',
// content: 'My custom description' 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Processors when installed via Homebrew. `
// } },
// ]
// Twitter Card
{
'hid': 'twitter:title',
'property': 'twitter:title',
'content': `Does ${this.app.name} work on Apple Silicon?`
},
{
'hid': 'twitter:description',
'property': 'twitter:description',
'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Processors when installed via Homebrew. `
},
{
'property': 'twitter:url',
'content': `${process.env.URL}${this.$nuxt.$route.path}`
},
]
} }
} }
} }

View file

@ -117,14 +117,30 @@ export default {
head() { head() {
return { return {
title: `Does ${this.app.name} work on Apple Silicon?`, title: `Does ${this.app.name} work on Apple Silicon?`,
// meta: [ meta: [
// // hid is used as unique identifier. Do not use `vmid` for it as it will not work // hid is used as unique identifier. Do not use `vmid` for it as it will not work
// { {
// hid: 'description', 'hid': 'description',
// name: 'description', 'name': 'description',
// content: 'My custom description' 'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Processors for gaming. `
// } },
// ]
// Twitter Card
{
'hid': 'twitter:title',
'property': 'twitter:title',
'content': `Does ${this.app.name} work on Apple Silicon?`
},
{
'hid': 'twitter:description',
'property': 'twitter:description',
'content': `Check the the latest reported support status of ${this.app.name} on Apple Silicon and Apple M1 Processors for gaming. `
},
{
'property': 'twitter:url',
'content': `${process.env.URL}${this.$nuxt.$route.path}`
},
]
} }
} }
} }

View file

@ -107,19 +107,38 @@ export default {
}, },
title () { title () {
return `List of ${this.category.pluralLabel || this.category.label} that work on Apple Silicon?` return `List of ${this.category.pluralLabel || this.category.label} that work on Apple Silicon?`
} },
description () {
return `Check the the latest reported support status of ${this.category.pluralLabel || this.category.label} on Apple Silicon and Apple M1 Processors. `
},
}, },
head() { head() {
return { return {
title: this.title, title: this.title,
// meta: [ meta: [
// // hid is used as unique identifier. Do not use `vmid` for it as it will not work // hid is used as unique identifier. Do not use `vmid` for it as it will not work
// { {
// hid: 'description', 'hid': 'description',
// name: 'description', 'name': 'description',
// content: 'My custom description' 'content': this.description
// } },
// ]
// Twitter Card
{
'hid': 'twitter:title',
'property': 'twitter:title',
'content': this.title
},
{
'hid': 'twitter:description',
'property': 'twitter:description',
'content': this.description
},
{
'property': 'twitter:url',
'content': `${process.env.URL}${this.$nuxt.$route.path}`
},
]
} }
} }
} }