在具体的页面 MD 文件上方写 YAML front matter,可以声明所需的功能。
默认主题的 Front Matter
Front Matter | VuePress (opens new window)
reco 主题的 Front Matter
Front Matter | vuepress-theme-reco (opens new window)
# 禁用导航栏
navbar: false
# 侧边栏深度
sidebarDepth: 2
# 开启侧边栏(使用文章内的标题,功能类似 TOC)
sidebar: auto
# 关闭侧边栏
sidebar: false