Fix favicons path

This commit is contained in:
prototypa
2022-11-16 00:16:24 +01:00
parent ab1642f49e
commit e8f6caaf0b

View File

@ -1,7 +1,9 @@
---
import { SITE } from '~/config.mjs';
const base = `${SITE.basePathname}${SITE.basePathname.endsWith('/') ? "" : "/"}`
---
<link rel="shortcut icon" href={`${SITE.basePathname}/favicon.ico`} />
<link rel="icon" type="image/svg+xml" href={`${SITE.basePathname}/favicon.svg`} />
<link rel="mask-icon" href={`${SITE.basePathname}/favicon.svg`} color="#8D46E7" />
<link rel="shortcut icon" href={`${base}favicon.ico`} />
<link rel="icon" type="image/svg+xml" href={`${base}favicon.svg`} />
<link rel="mask-icon" href={`${base}favicon.svg`} color="#8D46E7" />