Skip to content

Commit d69fbb8

Browse files
committed
feat: load favicon with static url
1 parent 30aae62 commit d69fbb8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
File renamed without changes.

2025/src/layouts/Layout.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import favicon from '@/assets/favicon.ico?url';
23
import Footer from '@/components/Footer.astro';
34
import Header from '@/components/Header.astro';
45
import { BASE_URL } from '@/consts';
@@ -37,7 +38,7 @@ const ogImageUrl = ufo.joinURL(BASE_URL, 'og.png');
3738
image: ogImageUrl,
3839
}}
3940
extend={{
40-
link: [{ rel: 'icon', href: '/favicon.ico' }],
41+
link: [{ rel: 'icon', href: favicon }],
4142
}}
4243
/>
4344
</head>

0 commit comments

Comments
 (0)