diff --git a/README.md b/README.md
index 7f82271..8b3dd7d 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+
+
# uptimesebi
[](https://git.zb-server.de/ZB-Server/uptimesebi/actions?workflow=ci.yaml) · License: AGPL-3.0-only
diff --git a/docs/images/logo.svg b/docs/images/logo.svg
new file mode 100644
index 0000000..0985176
--- /dev/null
+++ b/docs/images/logo.svg
@@ -0,0 +1,9 @@
+
diff --git a/internal/api/openapi_test.go b/internal/api/openapi_test.go
index 2c8f621..2faac4e 100644
--- a/internal/api/openapi_test.go
+++ b/internal/api/openapi_test.go
@@ -13,6 +13,7 @@ import (
"git.zb-server.de/ZB-Server/uptimesebi/internal/api"
"git.zb-server.de/ZB-Server/uptimesebi/internal/config"
+ "git.zb-server.de/ZB-Server/uptimesebi/internal/web"
)
func TestEveryRouteIsDocumented(t *testing.T) {
@@ -115,6 +116,18 @@ func TestAPIDocsServed(t *testing.T) {
if st, _, page := e.browser(t).page("/api/docs"); st != http.StatusOK || !strings.Contains(page, "swagger-ui-bundle.js") {
t.Errorf("/api/docs = %d", st)
}
+ // Every page carries the favicons, which ship in the embedded /static.
+ for _, path := range []string{"/brand/favicon.svg", "/brand/favicon-32.png", "/brand/apple-touch-icon.png", "/brand/site.webmanifest"} {
+ f, err := web.Static().Open(path)
+ if err != nil {
+ t.Errorf("static %s: %v", path, err)
+ continue
+ }
+ _ = f.Close()
+ }
+ if _, _, login := e.browser(t).page("/login"); !strings.Contains(login, `href="/static/brand/favicon.svg"`) {
+ t.Error("the login page lacks the favicon")
+ }
// Linked from every console page and where tokens are created.
if _, _, login := e.browser(t).page("/login"); !strings.Contains(login, `href="/api/docs"`) {
t.Error("the footer does not link the API documentation")
diff --git a/internal/web/apidocs.templ b/internal/web/apidocs.templ
index 8d2f010..ac042a4 100644
--- a/internal/web/apidocs.templ
+++ b/internal/web/apidocs.templ
@@ -14,13 +14,14 @@ templ APIDocsPage(p Page) {
}