{{ define "header" }}
  {{ partial "header.html" . }}
{{ end }}

{{ define "main" }}
  <header class="page">
    <h1>{{ .Title }}</h1>
  </header>

  {{ .Content }}

  {{- range .Data.Terms.Alphabetical -}}
    <h2>{{ .Name | title }}</h2>

    {{- range .WeightedPages -}}
      {{ if or (not .Draft) (not hugo.IsProduction) }}
        {{ .Render "li_grid_with_date" }}
      {{ end }}
    {{- end -}}
  {{- end -}}
{{ end }}

{{ define "footer" }}
  {{ partial "footer.html" . }}
{{ end }}
