Set page title fopr app pages

This commit is contained in:
Sam Carlton 2020-09-19 18:33:39 -05:00
parent 73096787ac
commit 99739f52db

View file

@ -32,13 +32,21 @@ export default {
async asyncData ({ params: { slug } }) {
return {
slug
slug,
app: appList.find(app => (app.slug === slug))
}
},
computed: {
app () {
// console.log('context', this.slug)
return appList.find(app => (app.slug === this.slug))
head() {
return {
title: `Does ${this.app.name} work on Apple Silicon?`,
// 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'
// }
// ]
}
}
}