Skip to content

Commit 116724b

Browse files
committed
feat(pwa): apple touch icon
1 parent be7167d commit 116724b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packages/visor/src/components/Head.astro

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ const faviconSvg = await getImage({
5858
src: siteFaviconSvg,
5959
format: 'svg',
6060
});
61+
const appleTouchIcon = await getImage({
62+
src: siteFaviconSvg,
63+
width: 180,
64+
height: 180,
65+
format: 'png'
66+
})
67+
// const faviconSvg = await getImage({ src: siteFaviconSvg, format: 'svg' })
6168
6269
const canonicalImageSrc = new URL(socialImage, Astro.site);
6370
const sanitizedDescription = description.replace(/(<([^>]+)>)/gi, '');
@@ -78,8 +85,8 @@ const authorTwitterHandle = author.twitterHandle;
7885
)
7986
}
8087
<!-- todo: Apple touch icon -->
81-
<!-- <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> -->
82-
<link rel="icon" type="image/svg+xml" href={siteFaviconSvg.src} />
88+
<link rel="apple-touch-icon" sizes="180x180" href={appleTouchIcon.src} />
89+
<link rel="icon" type="image/svg+xml" href={faviconSvg.src} />
8390
<link rel="icon" href="/favicon.ico" sizes="32x32" />
8491

8592
<!-- todo: sitemap -->
@@ -89,7 +96,7 @@ const authorTwitterHandle = author.twitterHandle;
8996
rel="alternate"
9097
type="application/rss+xml"
9198
href="/rss.xml"
92-
title="Leosvel's blog RSS Feed"
99+
title="Blog RSS Feed"
93100
/> -->
94101

95102
<!-- Primary Meta Tags -->

0 commit comments

Comments
 (0)