aboutsummaryrefslogtreecommitdiffstats
path: root/src/theme/Root.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2024-04-06 14:10:07 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2024-04-06 14:11:32 +0200
commit807d331d1c7234e7f19075be790493dd1641feb1 (patch)
tree551b1f16a610502ce31aa5fd04b5ee4f909fe1dc /src/theme/Root.tsx
parentAdd view source link (diff)
downloadblog-807d331d1c7234e7f19075be790493dd1641feb1.tar.gz
blog-807d331d1c7234e7f19075be790493dd1641feb1.tar.zst
blog-807d331d1c7234e7f19075be790493dd1641feb1.zip
Add favicon
Diffstat (limited to 'src/theme/Root.tsx')
-rw-r--r--src/theme/Root.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/theme/Root.tsx b/src/theme/Root.tsx
index 32462bb..cb66420 100644
--- a/src/theme/Root.tsx
+++ b/src/theme/Root.tsx
@@ -11,6 +11,9 @@ import Root from '@theme-original/Root';
11import ActiveSectionProvider from '@site/src/components/ActiveSectionProvider'; 11import ActiveSectionProvider from '@site/src/components/ActiveSectionProvider';
12import fontURL from '@site/src/fonts/recursive-latin.woff2?url'; 12import fontURL from '@site/src/fonts/recursive-latin.woff2?url';
13 13
14import faviconSVG from './favicon.svg?url';
15import appleTouchIcon from './apple-touch-icon.png?url';
16
14export default function RootWrapper(props: Props) { 17export default function RootWrapper(props: Props) {
15 return ( 18 return (
16 <ActiveSectionProvider> 19 <ActiveSectionProvider>
@@ -22,6 +25,9 @@ export default function RootWrapper(props: Props) {
22 type="font/woff2" 25 type="font/woff2"
23 crossOrigin="anonymous" 26 crossOrigin="anonymous"
24 /> 27 />
28 <link rel="icon" href="/favicon.ico" sizes="32x32" />
29 <link rel="icon" href={faviconSVG} type="image/svg+xml" />
30 <link rel="apple-touch-icon" href={appleTouchIcon} />
25 </Head> 31 </Head>
26 <Root {...props} /> 32 <Root {...props} />
27 </ActiveSectionProvider> 33 </ActiveSectionProvider>