Fix favicon basepath

This commit is contained in:
Djuri Baars 2024-03-30 15:35:33 +01:00
parent b1d9ab3c53
commit 9fb0aa2822
3 changed files with 37 additions and 37 deletions

View file

@ -3,42 +3,6 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="/assets/favicon/favicon.ico"
type="image/x-icon"
rel="icon"
media="(prefers-color-scheme: light)"
/>
<link
href="/assets/favicon-dark/favicon.ico"
type="image/x-icon"
rel="icon"
media="(prefers-color-scheme: dark)"
/>
<link
href="/assets/favicon/favicon.png"
type="image/png"
rel="icon"
media="(prefers-color-scheme: light)"
/>
<link
href="/assets/favicon-dark/favicon.png"
type="image/png"
rel="icon"
media="(prefers-color-scheme: dark)"
/>
<link
href="/assets/favicon/favicon.svg"
type="image/svg+xml"
rel="icon"
media="(prefers-color-scheme: light)"
/>
<link
href="/assets/favicon-dark/favicon.svg"
type="image/svg+xml"
rel="icon"
media="(prefers-color-scheme: dark)"
/>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">

View file

@ -1,5 +1,5 @@
<script lang="ts">
// import { PUBLIC_BASE_URL } from '$lib/config';
import { base } from '$app/paths';
import {
Container,
@ -18,6 +18,42 @@
<svelte:head>
<title>OrangeBTClock</title>
<link
href="{base}/assets/favicon/favicon.ico"
type="image/x-icon"
rel="icon"
media="(prefers-color-scheme: light)"
/>
<link
href="{base}/assets/favicon-dark/favicon.ico"
type="image/x-icon"
rel="icon"
media="(prefers-color-scheme: dark)"
/>
<link
href="{base}/assets/favicon/favicon.png"
type="image/png"
rel="icon"
media="(prefers-color-scheme: light)"
/>
<link
href="{base}/assets/favicon-dark/favicon.png"
type="image/png"
rel="icon"
media="(prefers-color-scheme: dark)"
/>
<link
href="{base}/assets/favicon/favicon.svg"
type="image/svg+xml"
rel="icon"
media="(prefers-color-scheme: light)"
/>
<link
href="{base}/assets/favicon-dark/favicon.svg"
type="image/svg+xml"
rel="icon"
media="(prefers-color-scheme: dark)"
/>
<script
type="module"
src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js?module"

0
static/.nojekyll Normal file
View file