vuepress侧边栏配置_VuePress默认主题配置(default theme config) - VuePress中文网

# 默认主题配置(default theme config)提示此页面上列出的所有选项仅适用于默认主题。如果你使用的是自定义主题,则选项可能会有所不同。# 主页(Homepage)默认主题提供了一个主页布局(用于该网站的主页)。要使用它,需要在你的根目录 README.md 的 YAML front matter 中指定 home:true 加上一些其他元数据。这是本网站使用的实际数据:---ho...
摘要由CSDN通过智能技术生成

# 默认主题配置(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: '/' },

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值