Skip to content

Commit

Permalink
fix($core): global components cannot be used as layouts (close: #1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Mar 9, 2019
1 parent 9d01514 commit a67f53d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
computed: {
layout () {
if (this.$page.path) {
if (this.$vuepress.isLayoutExists(this.$page.frontmatter.layout)) {
if (this.$vuepress.isLayoutExists(this.$page.frontmatter.layout) || this.$page.frontmatter.layout) {
return this.$page.frontmatter.layout
}
return 'Layout'
Expand Down

0 comments on commit a67f53d

Please sign in to comment.