{{.Title}}
{{if not .EditMode}}
{{end}}
{{/* Outside the editor, links to pages are boosted: htmx swaps .shell
(plus title and page actions, see "partial") instead of loading a new
document. hx.js decides which links count as pages. A view can opt out by
overriding "boost" (the canvas does: it saves on pagehide). */}}
{{if not .EditMode}}
{{end}}
{{block "extras" .}}{{end}}
{{end}}
{{/* The page-specific header actions; the partial swaps them out-of-band
(the attribute is inert in a full page). */}}
{{define "page-actions"}}
{{template "headerActions" .}}
{{end}}
{{define "shell"}}
{{if not .EditMode}}{{end}}
{{block "content" .}}{{end}}
{{if not .EditMode}}{{block "aside" .}}{{end}}{{end}}
{{end}}
{{/* Response to boosted navigation and history restores (hx.js swaps it into
.shell): the title, the page actions out-of-band, and the shell's content. */}}
{{define "partial"}}{{.Title}}
{{template "page-actions" .}}
{{template "shell" .}}{{end}}