From 99739f52dba2326b0ed7bce2ed10408748824053 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 19 Sep 2020 18:33:39 -0500 Subject: [PATCH] Set page title fopr app pages --- pages/app/_slug.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pages/app/_slug.vue b/pages/app/_slug.vue index d43b7b8..11974ac 100644 --- a/pages/app/_slug.vue +++ b/pages/app/_slug.vue @@ -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' + // } + // ] } } }