mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add meta for index page
This commit is contained in:
parent
a73b8daf4a
commit
ed2e15483c
1 changed files with 35 additions and 0 deletions
|
|
@ -168,6 +168,12 @@ export default {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
title () {
|
||||
return `Apple Silicon and Apple M1 app and game compatibility list`
|
||||
},
|
||||
description () {
|
||||
return `List of compatibility apps and games for Apple Silicon and the Apple M1 including performance reports and benchmarks`
|
||||
},
|
||||
allList () {
|
||||
return [
|
||||
...this.initialAppList,
|
||||
|
|
@ -219,6 +225,35 @@ export default {
|
|||
|
||||
return
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: this.title,
|
||||
meta: [
|
||||
// hid is used as unique identifier. Do not use `vmid` for it as it will not work
|
||||
{
|
||||
'hid': 'description',
|
||||
'name': '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}`
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue