Move site header and footer to the base template, and override the body block in index

This commit is contained in:
Eryn Wells 2022-11-15 22:12:09 -08:00
parent 19d8209cb2
commit 8fadc54a43
3 changed files with 17 additions and 21 deletions

View file

@ -4,13 +4,15 @@
<body>
{{ block "body" . -}}
{{ block "header" . }}{{ end }}
{{ block "header" . }}{{ partial "header.html" .}}{{ end }}
<main class="{{ .Type }} {{ .Kind }}{{ if gt (len .Pages) 0 }} list{{ end }}">
{{ block "main" . }}{{ end }}
</main>
{{- partial "development/page_info.html" . -}}
{{- block "footer" . -}}{{- end -}}
{{- block "footer" . -}}
{{ partial "footer.html" . }}
{{- end -}}
{{- end -}}
{{- partial "development/page_info.html" . -}}
</body>
{{ with partial "resources/root_css.html" . -}}