You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(theme): auto style markdown content in home page (#3561)
BREAKING CHANGES: styles are now applied by default to markdown content when `layout: home` is set in frontmatter. If they conflict with the styles of your custom component, please set `markdownStyles: false` in frontmatter.
---------
Co-authored-by: Divyansh Singh <[email protected]>
Copy file name to clipboardExpand all lines: docs/reference/default-theme-home-page.md
+27
Original file line number
Diff line number
Diff line change
@@ -166,3 +166,30 @@ type FeatureIcon =
166
166
height:string
167
167
}
168
168
```
169
+
170
+
## Markdown Content
171
+
172
+
You can add additional content to your site's homepage just by adding Markdown below the `---` frontmatter divider.
173
+
174
+
````md
175
+
---
176
+
layout: home
177
+
178
+
hero:
179
+
name: VitePress
180
+
text: Vite & Vue powered static site generator.
181
+
---
182
+
183
+
## Getting Started
184
+
185
+
You can get started using VitePress right away using `npx`!
186
+
187
+
```sh
188
+
npminit
189
+
npxvitepressinit
190
+
```
191
+
````
192
+
193
+
::: info
194
+
VitePress didn't always auto-style the extra content of the `layout:home` page. To revert to older behavior, you can add `markdownStyles:false` to the frontmatter.
0 commit comments