Home Page Path
Introduction
In some scenarios, the home page of a document is not necessarily the README.md
file of the document root directory. In this case, you can set README.md
in Frontmatter
to top the home page, and specify the home page path through themeConfig.home
.
Configuration
# another-home-path.md
---
title: specifies the home page
home: true
---
// .vuepress/config.ts
import { defineUserConfig } from 'vuepress'
import { recoTheme } from 'vuepress-theme-reco'
export default defineUserConfig({
theme: recoTheme({
home: '/another-home-path'
})
})