vitepress
vitepress copied to clipboard
Add an example to show how to configure head (especially a favicon)
Is your feature request related to a problem? Please describe.
When configuring the favicon of my site without a thorough unstanding on vitepress project structure, I felt confused about how to represent the icon path. I think there should be a head section in the app configs page (just like this), which can be a great referrence for rookie like me.
Describe the solution you'd like
Add a head section to this page to show how to configure head (especially a favicon) .
Describe alternatives you've considered
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Yap, we should document this 👍
Actually adding a favicon doesn't need any config. Just put a favicon.ico in your public directory. Config is required when you've that icon file with some different name or base is set.
Nice 🧐