writeLoftHead writes the shared <!doctype>, , opening , and brand block. The caller continues the page body and is responsible for closing .
(w http.ResponseWriter, title string)
| 598 | // brand block. The caller continues the page body and is responsible for |
| 599 | // closing </body></html>. |
| 600 | func writeLoftHead(w http.ResponseWriter, title string) { |
| 601 | fmt.Fprintf(w, `<!doctype html> |
| 602 | <html lang="en"> |
| 603 | <head> |
| 604 | <meta charset="utf-8"> |
| 605 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 606 | <meta name="robots" content="noindex, nofollow"> |
| 607 | <meta name="theme-color" content="#FAF7F2"> |
| 608 | <title>%s — e2a</title> |
| 609 | <link rel="icon" type="image/svg+xml" href="%s"> |
| 610 | <style>%s</style> |
| 611 | </head> |
| 612 | <body> |
| 613 | <div class="wrap"> |
| 614 | <a class="brand" href="/" aria-label="e2a"> |
| 615 | <span class="brand-mark" aria-hidden="true">2</span> |
| 616 | <span> |
| 617 | <span class="brand-text">e2a</span> |
| 618 | <span class="brand-tag">Email for AI agents</span> |
| 619 | </span> |
| 620 | </a> |
| 621 | `, html.EscapeString(title), loftFaviconDataURI, loftCommonCSS) |
| 622 | } |
| 623 | |
| 624 | // setMagicHeaders applies the shared security headers that any magic-link |
| 625 | // response carries. Same set on every render path. |
no outgoing calls
no test coverage detected