Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support custom content in home layout #702

Merged
merged 3 commits into from
Jun 6, 2022
Merged

Conversation

antfu
Copy link
Member

@antfu antfu commented Jun 2, 2022

Since v1, it's not possible to have custom content/components on the home page:

---
layout: home
---

All the following content will be ignored

which was quite useful in v0.x to provide additional info on the home page.

This PR brings back the ability, but not so sure if it's a ideal solution

Copy link
Member

@kiaking kiaking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! I've simplified the DOM structure and removed vp-docs style for now. Since I think usually when you want to customize Homepage, default styles might be too much to have. And it's easier to opt-in by adding vp-docs style than opt-out from it so 👀

@kiaking kiaking merged commit 92659a2 into main Jun 6, 2022
@kiaking kiaking deleted the fix/custom-content-home branch June 6, 2022 06:25
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants