You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For better user experience, the browser should get color hex before the page loaded, but it seems vuepress-next does not currently supported the duplicated meta tags like this:
But I think that supporting multiple <meta name="theme-color"> tags should be another issue.
There's another problem.
Meta tags set in user config will be injected to client with useSiteData. So we also have to update the sitedata ref, or the tag will be reset once navigating to another page.
Feature request
Description
For better user experience, the browser should get color hex before the page loaded, but it seems
vuepress-next
does not currently supported the duplicated meta tags like this:Related with vuepress/ecosystem#7 and #218
Proposed Solution
We are using following snippet to dedupe
<meta>
tag:https://github.com/vuepress/vuepress-next/blob/33c9a2145eeaf53429f2ae784e393074d1a9edd5/packages/%40vuepress/shared/src/utils/resolveHeadIdentifier.ts#L11-L14
But I think that supporting multiple
<meta name="theme-color">
tags should be another issue.There's another problem.
Meta tags set in user config will be injected to client with
useSiteData
. So we also have to update the sitedata ref, or the tag will be reset once navigating to another page.Originally posted by @meteorlxy in #218 (comment)
The text was updated successfully, but these errors were encountered: