Skip to content

Commit 6daf759

Browse files
committed
Added favicons (black and white 48x48 PNGs)
1 parent 6f87f5c commit 6daf759

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

docs/black-favicon.png

1.46 KB
Loading

docs/white-favicon.png

1.54 KB
Loading

src/main.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,14 @@ fn template(inner: impl Renderable) -> impl Renderable {
7171
<html lang="en">
7272
<head>
7373
<meta http-equiv="x-clacks-overhead" content="GNU Terry Pratchett" />
74-
<link rel="icon" href="favicon.png"/>
74+
<link
75+
href="black-favicon.png"
76+
rel="icon"
77+
media="(prefers-color-scheme: light)">
78+
<link
79+
href="white-favicon.png"
80+
rel="icon"
81+
media="(prefers-color-scheme: dark)">
7582
<script src="https://cdn.tailwindcss.com"></script>
7683
<script src="tw.js"></script>
7784

0 commit comments

Comments
 (0)