mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Set page title fopr app pages
This commit is contained in:
parent
73096787ac
commit
99739f52db
1 changed files with 13 additions and 5 deletions
|
|
@ -32,13 +32,21 @@ export default {
|
||||||
async asyncData ({ params: { slug } }) {
|
async asyncData ({ params: { slug } }) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
slug
|
slug,
|
||||||
|
app: appList.find(app => (app.slug === slug))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
head() {
|
||||||
app () {
|
return {
|
||||||
// console.log('context', this.slug)
|
title: `Does ${this.app.name} work on Apple Silicon?`,
|
||||||
return appList.find(app => (app.slug === this.slug))
|
// meta: [
|
||||||
|
// // hid is used as unique identifier. Do not use `vmid` for it as it will not work
|
||||||
|
// {
|
||||||
|
// hid: 'description',
|
||||||
|
// name: 'description',
|
||||||
|
// content: 'My custom description'
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue