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 } }) { 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'
// }
// ]
} }
} }
} }