-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Title and description in custom theme #349
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
Comments
Can you provide the repro repo? |
It's implemented in default theme, not in core. Copy the related code from (So I proposed to extract them into mixins for better reuse #314 . Consider merging it? @ulivz 😃 ) vuepress/lib/default-theme/Layout.vue Lines 90 to 96 in 5e87b65
Maybe we should put the code above to core, as it's necessary for the ssr template: vuepress/lib/app/index.ssr.html Lines 1 to 17 in 5e87b65
|
@pavloko Do you have any locale set? Notice that if you have something like this:
The locale will have precedence and that may be the reason of your problem... It is worth mentioning that with the field |
No any reproduced link, all the "conclusions" will be inconclusive. |
Hey guys, sorry for not providing this from the start. Here's the repo. @whoan this is not the case, please check out the example. @meteorlxy suggestion worked. It was confusing that including head tags worked fine (you can see this in example repo), but title and description. I see that #314 have been merged now (great work) and it seems that now to render title and description in a custom theme,
However, coming back to the fact that |
@pavloko Yes, that's the point, so I mentioned:
I would create a PR for that, but there is another problem, see #296 . In #296, I wonder whether should we restrict (Hmmm, #314 has not been merged yet, I think) |
Hey @meteorlxy! Sorry, missed that line between the code blocks. I shared my thought in #296. I'd agree that any |
When using a custom theme via
.vuepress/theme/Layout.vue
, config variablestitle
anddescription
specified in.vuepress/config.js
are not rendered in thedist/index.html
file.The text was updated successfully, but these errors were encountered: