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

{{ define "main" }}
{{- range .Pages.ByPublishDate.GroupByDate "2006" -}}
  <h1 class="date"><a id="{{ .Key }}">{{ .Key | title }}</a></h1>

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

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