Add tomato emoji SVG favicon
Assisted-by: Claude Opus 4.6 via pi
change pqmqsykzqxuupyxvzxxlqwmspnmwxqlx
commit fd6c23bcd9f08c79afe1eceef87abfdb0fc95c38
author Alpha Chen <alpha@kejadlen.dev>
date
parent xtuntyqs
diff --git a/lib/ketchup/views/layout.rb b/lib/ketchup/views/layout.rb
index 9265682..fa4990e 100644
--- a/lib/ketchup/views/layout.rb
+++ b/lib/ketchup/views/layout.rb
@@ -16,6 +16,7 @@ module Views
           meta(charset: "utf-8")
           meta(name: "viewport", content: "width=device-width, initial-scale=1")
           title { @title }
+          link(rel: "icon", href: "/favicon.svg", type: "image/svg+xml")
           link(rel: "stylesheet", href: "/css/reset.css")
           link(rel: "stylesheet", href: "/css/utopia.css")
           link(rel: "stylesheet", href: "/css/app.css")
diff --git a/lib/ketchup/web.rb b/lib/ketchup/web.rb
index 3643290..8d4a4d8 100644
--- a/lib/ketchup/web.rb
+++ b/lib/ketchup/web.rb
@@ -9,7 +9,7 @@ require_relative "views/series/new"
 
 class Web < Roda
   plugin :halt
-  plugin :static, %w[ /css /js ]
+  plugin :static, %w[ /css /js /favicon.svg ]
   plugin :all_verbs
   plugin :sessions, secret: CONFIG.session_secret
   plugin :route_csrf, csrf_failure: :empty_403, check_request_methods: %w[POST]
diff --git a/public/favicon.svg b/public/favicon.svg
new file mode 100644
index 0000000..68ace87
--- /dev/null
+++ b/public/favicon.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+  <text y="0.9em" font-size="90">🍅</text>
+</svg>