Skip to content

Commit 24e512c

Browse files
committed
svelte: Replace Svelte favicon with the original from the Ember.js app
We're putting the file into `/static` (instead of importing from `$lib/assets`) to ensure that the file is available at the root path for clients that just assume the URL instead of parsing the HTML for the right path.
1 parent 756081e commit 24e512c

File tree

4 files changed

+1
-3
lines changed

4 files changed

+1
-3
lines changed

svelte/src/app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<link rel="icon" href="/favicon.ico" />
67
%sveltekit.head%
78
</head>
89
<body data-sveltekit-preload-data="hover">

svelte/src/lib/assets/favicon.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

svelte/src/routes/+layout.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import '$lib/css/global.css';
3-
import favicon from '$lib/assets/favicon.svg';
43
54
import Header from '$lib/components/Header.svelte';
65
@@ -14,7 +13,6 @@
1413
</script>
1514

1615
<svelte:head>
17-
<link rel="icon" href={favicon} />
1816
<title>crates.io: Rust Package Registry</title>
1917
</svelte:head>
2018

svelte/static/favicon.ico

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)