ulivz / vt

🖼️ A "Post-VuePress Era" Documentation Theme (Deprecation Warning: For a next-gen SSG, please check out Rspress.)
https://vt.insx.dev
MIT License
137 stars 10 forks source link

How do I edit the home template? #97

Open nmeri17 opened 1 year ago

nmeri17 commented 1 year ago

While using the default theme, I had a lot of text beneath the "Features" section. After activating this theme, none of that text is being rendered, even though it's in the file. Your template uses only the front-matter, which makes no provision for detailing what project does before pressing Get Started or whatever

In addition, for some reason, my logo is surrounded by a large amount of white space. Is there a way to control this such that logo, tagline, its button and features section fit at first glance of that landing page?

ulivz commented 1 year ago

You can fully custom your home page by:

---
layout: YourLayout
---
nmeri17 commented 1 year ago

Yea, doing that eventually worked. I don't recall what exactly I changed but it was throwing errors initially, about missing components. I think the layout pattern only worked after ejecting default theme and deleting that ejection

The only issue I'm currently facing is not knowing how the header components (search, nav, dark mode, logo, right buttons) are injected into the home component. So I manually pasted <Navbar/> and they appeared, but the left menu drawer doesn't work on mobile. The icon is just there. I compared it to the one on your site and that one clicks on mobile. Would you like to see my repository or can you guess what the problem is