rename option to markdownStyles

pull/3561/head
Divyansh Singh 2 years ago
parent b97d62134a
commit d3cb748a8d

@ -167,9 +167,9 @@ type FeatureIcon =
} }
``` ```
## Extra homepage content ## Markdown Content
You can add additional content to your site's homepage just by adding additional Markdown content below the `---` frontmatter divider. You can add additional content to your site's homepage just by adding Markdown below the `---` frontmatter divider.
````md ````md
--- ---
@ -180,7 +180,7 @@ hero:
text: Vite & Vue powered static site generator. text: Vite & Vue powered static site generator.
--- ---
## Getting started ## Getting Started
You can get started using VitePress right away using `npx`! You can get started using VitePress right away using `npx`!
@ -191,7 +191,5 @@ npx vitepress init
```` ````
::: info ::: info
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.
VitePress didn't always auto-style the extra content of the `layout: home` page. To disable the new auto-styling specify `homeDocs: false` in the frontmatter.
::: :::

@ -23,7 +23,7 @@ const { frontmatter } = useData()
<VPHomeFeatures /> <VPHomeFeatures />
<slot name="home-features-after" /> <slot name="home-features-after" />
<VPHomeContent v-if="frontmatter.homeDocs !== false"> <VPHomeContent v-if="frontmatter.markdownStyles !== false">
<Content /> <Content />
</VPHomeContent> </VPHomeContent>
<Content v-else /> <Content v-else />

Loading…
Cancel
Save