feat(seo): metadata, previews and sitemaps for status pages and the app
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m23s
ci / test (pull_request) Successful in 12m44s
ci / build (pull_request) Successful in 16m9s
ci / image (pull_request) Successful in 3m24s

Status pages describe themselves to search engines and link previews:
description (from the page's text, else its status), canonical address,
language versions via ?lang= with hreflang and x-default, Open Graph and
Twitter tags, and a 1200x630 preview image per page and language showing
its name and current status (/og.png). Each page has a sitemap.xml, and
robots.txt keeps crawlers off feeds, the API and subscription forms.
Component, legal and subscription pages are noindex.

In the cloud edition the app's sign-in, sign-up and legal pages get the
same tags with a preview image of their own, plus robots.txt and a
sitemap. Everything signed in stays noindex, and self-hosted
installations keep the whole app out of search engines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-28 22:50:34 +01:00
1 parent 918c71f283
commit 3baeb98ee2
23 files changed
+1546 -129

No files matched your search

+6 -2
View File
@@ -104,7 +104,9 @@ func (s *Server) loginPage(c *gin.Context) {
}
allowed := email || len(signupProviders) > 0
providers := s.platformButtons(c.Request.Context(), false)
web.Render(c, http.StatusOK, web.Login(s.pageFor(c, "auth.login.title"), allowed, next, providers, c.Query("mfa") == "1"))
p := s.pageFor(c, "auth.login.title")
p.Meta = s.publicMeta(c, "/login", "auth.login.title")
web.Render(c, http.StatusOK, web.Login(p, allowed, next, providers, c.Query("mfa") == "1"))
}
// signupOptions tells whether people may sign up with email, and which
@@ -141,7 +143,9 @@ func (s *Server) signupPage(c *gin.Context) {
internalError(c, err)
return
}
web.Render(c, http.StatusOK, web.Signup(s.pageFor(c, "auth.signup.title"), providers, email, consent))
p := s.pageFor(c, "auth.signup.title")
p.Meta = s.publicMeta(c, "/signup", "auth.signup.title")
web.Render(c, http.StatusOK, web.Signup(p, providers, email, consent))
}
func (s *Server) signupSentPage(c *gin.Context) {