Skip to content

Commit

Permalink
fix($comments): use title as label in github
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Mar 29, 2019
1 parent bad5446 commit 2d29d17
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/layouts/Post.vue
Expand Up @@ -19,6 +19,7 @@
<Vssue
:title="vssueTitle"
:issue-id="vssueId"
:options="vssueOptions"
/>
</div>
</div>
Expand Down Expand Up @@ -50,6 +51,19 @@ export default {
vssueId () {
return this.$frontmatter['vssue-id'] || undefined
},
vssueOptions () {
if (this.$site.themeConfig.comments && (
typeof this.$site.themeConfig.comments.platform === 'undefined' ||
this.$site.themeConfig.comments.platform === 'github'
)) {
const labels = (this.$site.themeConfig.comments && this.$site.themeConfig.comments.labels) || ['Vssue']
return {
labels: labels.concat(this.vssueTitle),
}
}
return {}
},
},
}
</script>

0 comments on commit 2d29d17

Please sign in to comment.