{{if $l.Footer}}{{end}}
{{end}}
{{/* The header: the banner, then its modules in order. With the menu folding
(Layout.Fold) a hidden checkbox comes first: it is the open/closed state,
so the burger label toggles the menu with no script and in old browsers
(`:checked ~` reaches every block after it). Folding itself is decided by
the script below — any link on a second line means the menu does not fit —
which drops nav-auto, the no-script fallback blog.css folds on phones. */}}
{{define "siteheader"}}{{$l := .Data.layout}}{{$t := .Data.theme}}
{{if $l.Fold}}{{end}}{{end}}
{{/* The fold button, a label for the checkbox above. */}}
{{define "burger"}}{{end}}
{{define "notices"}}{{if .}}
{{range .}}
{{end}}
{{end}}{{end}}
{{/* One layout module. .m is the store.Module, .root the page data; the same
kind renders differently in the header (big blocks) and elsewhere (boxes). */}}
{{define "module"}}{{$m := .m}}{{$r := .root}}{{$t := $r.Data.theme}}{{$rc := $t.RuleClass}}{{$b := .burger}}
{{- if eq $m.Kind "title"}}
{{- end}}{{end}}
{{/* The search box: a plain GET form, so it works without JavaScript. Just the
input — Enter (or the phone keyboard's search key) submits a one-field
form everywhere, and the placeholder is the label, so the page does not
say "Search" over and over. .Data.q only exists on the search page. */}}
{{define "searchform"}}{{end}}
{{/* The header rule beside a title or logo block: after it, and before it
too when the header is centred. Nothing without a rule (.rc is empty). */}}
{{define "rule"}}{{if .rc}}{{if or (not .before) (eq .theme.HeaderAlign "center")}}{{end}}{{end}}{{end}}
{{define "modtitle"}}{{if .Title}}