首页路径

reco_luan2023-02-20

介绍

某些场景下,文档的首页并不一定是文档根目录的 README.md 文件,这时我们可以在 Frontmatter 中设置 home: true 来置顶首页,并通过 themeConfig.home 来指定首页路径。

配置

# another-home-path.md
---
title: 指定首页
home: true
---
// .vuepress/config.ts

import { defineUserConfig } from 'vuepress'
import { recoTheme } from 'vuepress-theme-reco'

export default defineUserConfig({
  theme: recoTheme({
    home: '/another-home-path'
  })
})
最后更新时间 5/23/2025, 9:02:15 AM
页面导航
公告
最新版本
  • vuepress:2.0.0-rc.19
  • reco 主题:2.0.0-rc.26
QQ 频道:3u8x6485s0

周知:原 3 个 QQ 群成员活跃状态差异较大,且分布较分散,现停止新人加群,为了方便大家的交流,请移步 QQ 频道。

🤖