{{define "layout"}} {{.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. */}}
{{if not .EditMode}}
{{end}}
{{if .EditMode}}{{block "headerActions" .}}{{end}}{{else}} {{maintenanceWidget}} {{end}}
{{template "shell" .}}
{{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}}
Request: {{.RenderMS}} ms {{block "footerExtras" .}}{{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}}