refactor(v2): automatically add base URL to PWA head tags (#5169)

* refactor(v2): automatically add base URL to PWA head tags

* Add baseUrl only if necessary
This commit is contained in:
Alexey Pyltsyn 2021-07-15 16:38:14 +03:00 committed by GitHub
parent 81170a79f4
commit f7b5e90390
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 9 deletions

View file

@ -196,12 +196,12 @@ const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging;
{
tagName: 'link',
rel: 'icon',
href: `${baseUrl}img/docusaurus.png`,
href: 'img/docusaurus.png',
},
{
tagName: 'link',
rel: 'manifest',
href: `${baseUrl}manifest.json`,
href: 'manifest.json',
},
{
tagName: 'meta',
@ -221,18 +221,18 @@ const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging;
{
tagName: 'link',
rel: 'apple-touch-icon',
href: `${baseUrl}img/docusaurus.png`,
href: 'img/docusaurus.png',
},
{
tagName: 'link',
rel: 'mask-icon',
href: `${baseUrl}img/docusaurus.png`,
href: 'img/docusaurus.png',
color: 'rgb(62, 204, 94)',
},
{
tagName: 'meta',
name: 'msapplication-TileImage',
href: `${baseUrl}img/docusaurus.png`,
href: 'img/docusaurus.png',
},
{
tagName: 'meta',