From 86b82f6a039a24dc6f296cb865319b30082bf4b4 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Fri, 9 Feb 2024 12:30:56 -0600 Subject: [PATCH] Update default-theme-home-page.md --- docs/reference/default-theme-home-page.md | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/reference/default-theme-home-page.md b/docs/reference/default-theme-home-page.md index b44c2e6b..99995563 100644 --- a/docs/reference/default-theme-home-page.md +++ b/docs/reference/default-theme-home-page.md @@ -166,3 +166,32 @@ type FeatureIcon = height: string } ``` + +## Extra homepage content + +You can add additional content to your site's homepage just by adding additional Markdown content below the `---` frontmatter divider. + +````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 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. + +:::