Skip to content

Commit e6b673a

Browse files
committed
add title and desription meta
1 parent 8fa1cad commit e6b673a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/templates/Post.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ export default {
3939
Author,
4040
PostMeta,
4141
PostTags
42+
},
43+
metaInfo () {
44+
return {
45+
title: this.$page.post.title,
46+
meta: [
47+
{
48+
name: 'description',
49+
content: this.$page.post.description
50+
}
51+
]
52+
}
4253
}
4354
}
4455
</script>

0 commit comments

Comments
 (0)