vitepress
vitepress copied to clipboard
Apply externalLinkIcon option to root index.md
Is your feature request related to a problem? Please describe.
Currently, when you set externalLinkIcon: true it is not applied to the root index.md.
Describe the solution you'd like
It would be nice to also add the external link icon to external links in the root index.md.
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.
Can you explain what you're trying to do?
Please see https://stackblitz.com/edit/vite-ps7x8w?file=docs%2Findex.md
I'm expecting there to be an external link icon similar to the link on the example page for consistency.
Ah, I see. For now you can do this:
---
layout: home
pageClass: external-link-icon-enabled
hero:
...
Thank you. Feel free to close as this option works for me.
No, we should fix it. Probably a 1-2 line change.
Great. I assume once it's fixed, pageClass will be optional, right.
Yeah