display contribution name in page title for better back navigation and bookmarking

This commit is contained in:
Grzegorz Leoniec 2018-10-30 13:00:59 +01:00
parent d0036213d8
commit 530c06f30e

View File

@ -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: {