diff --git a/src/templates/GhostPost.vue b/src/templates/GhostPost.vue index c99b7d8..a82d393 100644 --- a/src/templates/GhostPost.vue +++ b/src/templates/GhostPost.vue @@ -116,7 +116,7 @@ export default { { property: 'twitter:url', content: baseUrl + this.thisPost.path }, { property: 'twitter:image', content: changeUrls(this.thisPost.image) }, { property: 'twitter:label1', content: 'Written by' }, - { property: 'twitter:data1', content: this.thisPost.authors[0].name }, + { property: 'twitter:data1', content: this.thisPost.authors ? this.thisPost.authors[0].name : '' }, { property: 'twitter:label2', content: 'Filed under' }, { property: 'twitter:data2', content: this.thisPost.tags ? this.thisPost.tags.map((t)=>{return t.title}).join(',') : '' }, ])