frontmatter增加showSidebar属性

在文章的frontmatter中增加showSidebar属性,当showSidebar=false时,就不显示左侧sidebar,但是不影响右侧的rightMenu。
这个是为了补充sidebar=false时同时也会导致不显示rightMenu的不足。
This commit is contained in:
kaokei 2022-01-03 23:00:21 +08:00 committed by GitHub
parent bc26495567
commit 98ddc1b8c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ export default {
!frontmatter.home
&& frontmatter.sidebar !== false
&& this.sidebarItems.length
&& frontmatter.showSidebar !== false
)
},