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

fix: align $title with vuepress (#158) #163

Merged
merged 1 commit into from
Nov 27, 2020
Merged

fix: align $title with vuepress (#158) #163

merged 1 commit into from
Nov 27, 2020

Conversation

patak-dev
Copy link
Member

Fixes #158

@kiaking I tried to do the localized pageData.title change but looks like it is more involved than I thought. I do not have the siteDataByRoute when pageData is created https://github.com/vuejs/vitepress/blob/master/src/node/markdownToVue.ts#L42
I still think that it would be good that do it, but I'll leave this one to someone else to check.
The PR only fixes the bug and aligns $site with the docs and vuepress.

@kiaking kiaking changed the title fix: align $title with vuepress fix: align $title with vuepress (#158) Nov 27, 2020
@kiaking kiaking added the bug Something isn't working label Nov 27, 2020
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.

Oh OK cool. Yeah, by the way I also thought, if we were to always add page.title at build time, we should do the same for description (should always have site.description if page.description is undefined).

I agree this can be a bit tricky, and also, at the moment, both page.title and page.description is in sync, so I guess that't good.

Let's come back to making page.title to have the default value outside of this PR 👍

@kiaking kiaking merged commit 30740d3 into vuejs:master Nov 27, 2020
@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
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$title compat with vuepress
2 participants