From 8d40a3918796be58db23731bcea15cceaf579748 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Wed, 26 Aug 2026 13:34:18 +0200 Subject: [PATCH] =?UTF-8?q?Favicon:=20s=C3=A5pestykke=20p=C3=A5=20en=20tre?= =?UTF-8?q?kasse=20(SVG)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lenkes relativt fra temaet (theme/favicon.svg) og fra admin-basen, så nettleseren slipper å gjette på /favicon.ico. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JcEy43fNYpwg6K6oTKakWR --- soapbox/static/admin/favicon.svg | 16 ++++++++++++++++ soapbox/templates/admin/base.html | 1 + soapbox/themes/green/static/favicon.svg | 16 ++++++++++++++++ soapbox/themes/green/templates/base.html | 1 + tests/test_app.py | 1 + 5 files changed, 35 insertions(+) create mode 100644 soapbox/static/admin/favicon.svg create mode 100644 soapbox/themes/green/static/favicon.svg diff --git a/soapbox/static/admin/favicon.svg b/soapbox/static/admin/favicon.svg new file mode 100644 index 0000000..b94ff70 --- /dev/null +++ b/soapbox/static/admin/favicon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/soapbox/templates/admin/base.html b/soapbox/templates/admin/base.html index cba78ab..40e40d9 100644 --- a/soapbox/templates/admin/base.html +++ b/soapbox/templates/admin/base.html @@ -5,6 +5,7 @@ {% block title %}Admin{% endblock %} – {{ site.title }} + diff --git a/soapbox/themes/green/static/favicon.svg b/soapbox/themes/green/static/favicon.svg new file mode 100644 index 0000000..b94ff70 --- /dev/null +++ b/soapbox/themes/green/static/favicon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/soapbox/themes/green/templates/base.html b/soapbox/themes/green/templates/base.html index 1ecba22..9fab7dd 100644 --- a/soapbox/themes/green/templates/base.html +++ b/soapbox/themes/green/templates/base.html @@ -6,6 +6,7 @@ {% block title %}{{ site.title }}{% endblock %} {% if site.description %}{% endif %} + diff --git a/tests/test_app.py b/tests/test_app.py index f26db0a..d6e3e65 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -60,6 +60,7 @@ def test_full_flow_owner(client, cfg): html = client.get("/groent-er-skjoent/").text assert "verden" in html assert 'href="../theme/style.css"' in html + assert 'href="../theme/favicon.svg"' in html assert 'href="../"' in html # intern lenke omskrevet til relativ assert client.get("/groent-er-skjoent/mitt-bilde.png").status_code == 200 front = client.get("/").text