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

{{ define "main" }}
<section id="by-date">
  {{- range .Pages.ByDate.GroupByDate "2006" -}}
  <h6>{{ .Key | title }}</h6>
  <ul class="post-list">
    {{- range .Pages -}}
      {{- if or (not .Draft) (not hugo.IsProduction) -}}
        {{- .Render "li_grid_with_date" -}}
      {{- end -}}
    {{- end -}}
  </ul>
  {{- end -}}
</section>
{{ end }}

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