Merge pull request #20291 from overleaf/as-update-favicons
Update favicons and improve PWA icon support GitOrigin-RevId: 972aae6b3791ba61a58787414eb6507f95ee8744
This commit is contained in:
@@ -38,8 +38,8 @@ else if (settings.overleaf)
|
||||
meta(name="image", content=buildImgPath('ol-brand/overleaf_og_logo.png'))
|
||||
else
|
||||
//- the default image for Overleaf Community Edition/Server Pro
|
||||
meta(itemprop="image", content='/touch-icon-192x192.png')
|
||||
meta(name="image", content='/touch-icon-192x192.png')
|
||||
meta(itemprop="image", content='/apple-touch-icon.png')
|
||||
meta(name="image", content='/apple-touch-icon.png')
|
||||
|
||||
//- Keywords
|
||||
if (metadata && metadata.keywords)
|
||||
@@ -68,7 +68,7 @@ else if (settings.overleaf)
|
||||
meta(name="twitter:image", content=buildImgPath('ol-brand/overleaf_og_logo.png'))
|
||||
else
|
||||
//- the default image for Overleaf Community Edition/Server Pro
|
||||
meta(name="twitter:image", content='/touch-icon-192x192.png')
|
||||
meta(name="twitter:image", content='/apple-touch-icon.png')
|
||||
|
||||
//- Open Graph
|
||||
//- to do - add og:url
|
||||
@@ -88,7 +88,7 @@ else if (settings.overleaf)
|
||||
meta(property="og:image", content=buildImgPath('ol-brand/overleaf_og_logo.png'))
|
||||
else
|
||||
//- the default image for Overleaf Community Edition/Server Pro
|
||||
meta(property="og:image", content='/touch-icon-192x192.png')
|
||||
meta(property="og:image", content='/apple-touch-icon.png')
|
||||
|
||||
if (metadata && metadata.openGraphType)
|
||||
meta(property="og:type", metadata.openGraphType)
|
||||
@@ -112,11 +112,16 @@ meta(name="apple-mobile-web-app-capable" content="yes")
|
||||
meta(name="apple-mobile-web-app-status-bar-style" content="black-translucent")
|
||||
|
||||
//- Icons
|
||||
link(rel="icon", href="/favicon.ico")
|
||||
link(rel="icon", sizes="192x192", href="/touch-icon-192x192.png")
|
||||
link(rel="apple-touch-icon-precomposed", href="/apple-touch-icon-precomposed.png")
|
||||
link(rel="mask-icon", href="/mask-favicon.svg", color="#138A07")
|
||||
link(rel="icon", sizes="32x32", href="/favicon-32x32.png")
|
||||
link(rel="icon", sizes="16x16", href="/favicon-16x16.png")
|
||||
link(rel="icon", href="/favicon.svg" type="image/svg+xml")
|
||||
link(rel="apple-touch-icon", href="/apple-touch-icon.png")
|
||||
link(rel="mask-icon", href="/mask-favicon.svg", color="#046530")
|
||||
|
||||
//- Canonical Tag for SEO
|
||||
if (metadata && metadata.canonicalURL)
|
||||
link(rel="canonical" href=metadata.canonicalURL)
|
||||
|
||||
//- Manifest
|
||||
//- Does not currently contain a start_url to prevent browser installation prompts
|
||||
link(rel="manifest" href="/web.sitemanifest")
|
||||
|
||||
Reference in New Issue
Block a user