rin
Public Open-source lightweight git hosting.

fix(agents): drop the duplicated site name from the page title

ed5bc88 Browse files
R rin · 2026-10-16 18:19 UTC
2 files changed +4 -1
internal/web/handlers/agents.go
+1 -1
... ... @@ -7,7 +7,7 @@ import (
7 7 // AgentsPage renders the public guide for AI agents working with this instance.
8 8 // GET /agents
9 9 func (h *Handler) AgentsPage(c *fiber.Ctx) error {
10 - data := h.baseData(c, "AI agents · Polar")
10 + data := h.baseData(c, "AI agents")
11 11 data["SiteURL"] = h.siteURL(c)
12 12 return h.render(c, fiber.StatusOK, "agents", data)
13 13 }
internal/web/handlers/agents_test.go
+3 -0
... ... @@ -27,4 +27,7 @@ func TestAgentsPage(t *testing.T) {
27 27 t.Errorf("/agents page body missing %q", want)
28 28 }
29 29 }
30 + if !strings.Contains(body, "<title>AI agents · Polar</title>") {
31 + t.Errorf("/agents page title should be \"AI agents · Polar\"")
32 + }
30 33 }