-
- Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
contribution welcomeThe team would welcome a contribution from the community for this issueThe team would welcome a contribution from the community for this issue
Description
Is your feature request related to a problem? Please describe.
Conveniently use content-adaptive layout in components on the home page
Describe the solution you'd like
.vitepress/theme/index.ts
:
import HomePage from './component/HomePage' export default { Layout: () => { return h(Theme.Layout, null, { 'home-features-after': () => h(HomePage), }) },
HomePage.vue
:
<script setup lang="ts"> import{ VPHomeContent } from 'vitepress/theme' </script> <template> <VPHomeContent> <!-- my custom content --> </VPHomeContent> </template>
Describe alternatives you've considered
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
contribution welcomeThe team would welcome a contribution from the community for this issueThe team would welcome a contribution from the community for this issue