# 默认主题配置(default theme config)
提示
此页面上列出的所有选项仅适用于默认主题。如果你使用的是自定义主题,则选项可能会有所不同。
# 主页(Homepage)
默认主题提供了一个主页布局(用于该网站的主页)。要使用它,需要在你的根目录 README.md 的 YAML front matter 中指定 home:true 加上一些其他元数据。这是本网站使用的实际数据:---
home: true
heroImage: /hero.png
actionText: Get Started →
actionLink: /guide/
features:
- title: Simplicity First
details: Minimal setup with markdown-centered project structure helps you focus on writing.
- title: Vue-Powered
details: Enjoy the dev experience of Vue + webpack, use Vue components in markdown, and develop custom themes with Vue.
- title: Performant
details: VuePress generates pre-rendered static HTML for each page, and runs as an SPA once a page is loaded.
footer: MIT Licensed | Copyright © 2018-present Evan You
---
YAML front matter 的内容之后的任意其他内容,将被解析为正常 markdown,并在特性部分之后渲染。
If you want to use a completely custom homepage layout, you can also use a Custom Layout.
# 导航链接(navbar links)
你可以通过 themeConfig.nav 将链接添加到导航栏中:// .vuepress/config.js
module.exports = {
themeConfig: {
nav: [
{ text: 'Home', link: '/' },