From 3204ecf1c48e730f02fb83d7c09d2c778a6f6bdd Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 22 Sep 2026 12:50:37 -0400 Subject: Add favicon --- Makefile | 3 +++ public/favicon.ico | Bin 0 -> 678 bytes public/icon.svg | 10 ++++++++++ views/layouts/base.eta | 2 ++ 4 files changed, 15 insertions(+) create mode 100644 Makefile create mode 100644 public/favicon.ico create mode 100644 public/icon.svg diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..72fbe65 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +# librsvg renders the 256-unit viewBox at 96dpi, so 32px wants a density of 12. +public/favicon.ico: public/icon.svg + magick -background none -density 12 $< -resize 32x32 PNG32:$@ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..2bbb226 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/icon.svg b/public/icon.svg new file mode 100644 index 0000000..d2635c5 --- /dev/null +++ b/public/icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/views/layouts/base.eta b/views/layouts/base.eta index fb644f5..e65eb32 100644 --- a/views/layouts/base.eta +++ b/views/layouts/base.eta @@ -4,6 +4,8 @@ <%= it.title %> + + <% for (const src of it.scripts ?? []) { %> -- cgit v1.3.1