{{ define "main" }} {{ $pages := (where (where .Site.Pages "Type" "post") "IsPage" true) }}
{{ range ($pages.GroupByDate "2006") }} {{ if gt .Key 1 }} {{ $.Scratch.Set "count" 1 }} {{ range .Pages }} {{ if (eq ($.Scratch.Get "count") 1) }} {{ $.Scratch.Set "count" 0 }}

{{ .Date.Format "2006" }}

{{ end }} {{ end }}
    {{ range .Pages }}
  • {{ .Date.Format "01/02" }} {{ .Title }}
  • {{ end }}
{{ end }} {{ end }}
{{ partial "sidebar.html" . }}

{{ end }}