Skip to content

Commit 4f65308

Browse files
committed
Fix baseurl in head
1 parent 45e9dd8 commit 4f65308

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Head.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ const { title = "Chaostreff Osnabrück", ...props } = Astro.props;
55
<head>
66
<meta charset="UTF-8" />
77
<meta name="viewport" content="width=device-width" />
8-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
9-
<link rel="sitemap" href="/sitemap-index.xml" />
8+
<link
9+
rel="icon"
10+
type="image/svg+xml"
11+
href=`${import.meta.env.BASE_URL}/favicon.svg`
12+
/>
13+
<link rel="sitemap" href=`${import.meta.env.BASE_URL}/sitemap-index.xml` />
1014
<meta name="generator" content={Astro.generator} />
1115
<base href={import.meta.env.BASE_URL} />
1216
<title>{title}</title>

0 commit comments

Comments
 (0)