We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6f3699 commit 38d1deaCopy full SHA for 38d1dea
packages/@vuepress/core/lib/app/components/LayoutDistributor.vue
@@ -13,7 +13,10 @@ export default {
13
computed: {
14
layout () {
15
if (this.$page.path) {
16
- return this.$page.frontmatter.layout || 'Layout'
+ if (getLayoutAsyncComponent(this.$page.frontmatter.layout)) {
17
+ return this.$page.frontmatter.layout
18
+ }
19
+ return 'Layout'
20
}
21
return 'NotFound'
22
0 commit comments