From 530c06f30ee6970b6ef05d773a227689e386a769 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 30 Oct 2018 13:00:59 +0100 Subject: [PATCH] display contribution name in page title for better back navigation and bookmarking --- pages/post/_slug/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/post/_slug/index.vue b/pages/post/_slug/index.vue index ae78c16ca..528be4fd4 100644 --- a/pages/post/_slug/index.vue +++ b/pages/post/_slug/index.vue @@ -91,15 +91,21 @@ export default { HcAuthor, HcShoutButton }, - + head() { + return { + title: this.title + } + }, data() { return { - post: null + post: null, + title: 'loading' } }, watch: { Post(post) { this.post = post[0] + this.title = this.post.title } }, apollo: {