Skip to content

Commit

Permalink
docs(zh): tweak and sync translations (#3581)
Browse files Browse the repository at this point in the history
sync with 0903027
  • Loading branch information
awxiaoxian2020 authored Feb 18, 2024
1 parent 34adddc commit 60d5984
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion docs/zh/reference/default-theme-home-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,23 @@ interface Feature {

// 点击 feature 组件时的链接,可以是内部链接,也可以是外部链接。
//
//
// 例如 `guide/reference/default-theme-home-page` 或 `https://example.com`
link?: string

// feature 组件内显示的链接文本,最好与 `link` 选项一起使用
//
//
// 例如 `Learn more`, `Visit page` 等
linkText?: string

// `link` 选项的链接 rel 属性
//
// 例如 `external`
rel?: string

// `link` 选项的链接 target 属性
target?: string
}

type FeatureIcon =
Expand All @@ -160,4 +165,31 @@ type FeatureIcon =
width?: string
height: string
}
```
```
## Markdown 内容 {#markdown-content}
可以在 frontmatter 的分隔符 `---` 下方为站点主页添加额外的 Markdown 内容。
````md
---
layout: home
hero:
name: VitePress
text: Vite & Vue powered static site generator.
---
## Getting Started
You can get started using VitePress right away using `npx`!
```sh
npm init
npx vitepress init
```
````
::: info
VitePress 并不总是为 `layout: home` 页面里额外的内容自动添加样式。要回到以前的行为,可以在 fortmatter 中添加 `markdownStyles: false`
:::

0 comments on commit 60d5984

Please sign in to comment.