Add page <title> to every rendered page

layout.html now emits <title>{{ pageTitle . }} · Palette</title>; the
pageTitle template func maps the Page field to a label (New paste,
Public pastes, Saved, Settings, paste title or 'Paste <id>', Unlock,
Can, Not found).
This commit is contained in:
fen committed 2026-10-16 16:52:29 -05:00
1 parent 1c08647742
commit b4c23a09bf
2 files changed
+34

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
{{define "head"}}
<meta charset="utf-8">
<title>{{ pageTitle . }} · Palette</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/static/app.css">
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">