Skip to content

Conversation

@bluwy
Copy link
Member

@bluwy bluwy commented Nov 6, 2025

The google fonts for the landing page was loaded for all pages, I moved the links to the landing page only so they won't be loaded on other pages.

Also, the link was fetching Inter when VitePress already bundles its own, so I updated the link as there's no need to fetch Inter from google fonts again.

@bluwy bluwy added the documentation Improvements or additions to documentation label Nov 6, 2025
['meta', { property: 'og:title', content: pageData.title }],
)
return pageData
transformHead(ctx) {
Copy link
Member Author

@bluwy bluwy Nov 6, 2025

Choose a reason for hiding this comment

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

transformPageData was previously use for reasons mentioned at #15984. However, I can't seem to replicate the issue now. We're only generating one .html file which servers would use for both /path and /path.html. There's no way that canonical links were only added to /path.html unless we generate two files or it was SSR.

transformHead seems to work the same from my testing and is the more direct API.

@sapphi-red sapphi-red merged commit d43dbd7 into main Nov 7, 2025
19 checks passed
@sapphi-red sapphi-red deleted the optimize-docs-landing branch November 7, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants