heroBefore 插槽
heroBg 插槽
{ "image": "https://theme-hope-assets.vuejs.press/bg/6-light.svg", "imageDark": "https://theme-hope-assets.vuejs.press/bg/6-dark.svg", "style": { "background-attachment": "fixed" } }
heroLogo 插槽
{ "image": "https://theme-hope-assets.vuejs.press/logo.svg", "imageDark": null, "style": null, "alt": "" }
heroInfo 插槽
{ "text": "VuePress Theme Hope", "tagline": "一个具有强大功能的 vuepress 主题✨", "style": { "min-height": "600px" }, "isFullScreen": false }
heroAfter 插槽
易于安装
运行
pnpm create vuepress-theme-hope hope-project
以创建一个新的主题项目。在已有项目根目录下运行
pnpm create vuepress-theme-hope add .
以在项目中添加主题。
contentBefore 插槽
此页面展示了如何使用插槽来自定义主页的内容。
contentAfter 插槽