diff --git a/assets/build b/assets/build index 73a34a5a9..abcdde06a 100755 --- a/assets/build +++ b/assets/build @@ -26,7 +26,7 @@ my ( %data, %paths ); for ( sort { $b =~ /\.woff2$/ <=> $a =~ /\.woff2$/ or $a cmp $b } - + ) { say; @@ -36,13 +36,35 @@ for ( my $name = s/\.(\w)/\U$1/r; - if ( $_ eq 'favicon.ico' ) { + if ( $_ eq 'favicon.svg' ) { $data{$name} = $data; print $fh <<'GO'; - case "/favicon.ico": - w.Header().Set("Content-Type", "image/x-icon") - w.Write(faviconIco) + case "/favicon.svg": + w.Header().Set("Content-Type", "image/svg+xml") + w.Write(faviconSvg) +GO + + next; + } + if ( $_ eq 'favicon16.png' ) { + $data{$name} = $data; + + print $fh <<'GO'; + case "/favicon16.png": + w.Header().Set("Content-Type", "image/png") + w.Write(favicon16Png) +GO + + next; + } + if ( $_ eq 'favicon32.png' ) { + $data{$name} = $data; + + print $fh <<'GO'; + case "/favicon32.png": + w.Header().Set("Content-Type", "image/png") + w.Write(favicon32Png) GO next; diff --git a/assets/favicon.ico b/assets/favicon.ico deleted file mode 100644 index e770d816b..000000000 Binary files a/assets/favicon.ico and /dev/null differ diff --git a/assets/favicon.svg b/assets/favicon.svg new file mode 100644 index 000000000..69b231d55 --- /dev/null +++ b/assets/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/favicon16.png b/assets/favicon16.png new file mode 100644 index 000000000..db1ac3507 Binary files /dev/null and b/assets/favicon16.png differ diff --git a/assets/favicon32.png b/assets/favicon32.png new file mode 100644 index 000000000..f2f66fdc3 Binary files /dev/null and b/assets/favicon32.png differ diff --git a/logo.png b/logo.png index 5af0b7be1..c7ba0f7eb 100644 Binary files a/logo.png and b/logo.png differ diff --git a/logo.svg b/logo.svg index f7aa9d330..421837398 100644 --- a/logo.svg +++ b/logo.svg @@ -1 +1 @@ - + \ No newline at end of file diff --git a/main.go b/main.go index c499ddea7..795619e92 100644 --- a/main.go +++ b/main.go @@ -41,7 +41,9 @@ func main() { r.Get("/about", routes.About) r.Get("/assets/{asset}", routes.Asset) r.Get("/callback", routes.Callback) - r.Get("/favicon.ico", routes.Asset) + r.Get("/favicon.svg", routes.Asset) + r.Get("/favicon16.png", routes.Asset) + r.Get("/favicon32.png", routes.Asset) r.Get("/feeds/{feed}", routes.Feed) r.Get("/ideas", routes.Ideas) r.Get("/log-out", routes.LogOut) diff --git a/views/header.html b/views/header.html index 0423348aa..a0e2121a1 100644 --- a/views/header.html +++ b/views/header.html @@ -6,6 +6,9 @@ + + + {{/* FIXME This won't change for dark themes :-( */}} diff --git a/views/svg/logo.svg b/views/svg/logo.svg index f5c0daf3e..421837398 100644 --- a/views/svg/logo.svg +++ b/views/svg/logo.svg @@ -1 +1 @@ - + \ No newline at end of file