{{ if ne .context.Content "" }}
    <section>
        {{ partial "snippets/content" (dict "content" .context.Content) }}
    </section>
{{ end }}
<section>
{{ partial "debug" (dict "context" . "caller" "archive.html" )}}
{{ $prev := 3000}}
{{range where site.RegularPages "Type" "in" site.Params.searchSections }}
    {{ $date := .Date }}
    {{ if gt $prev ($date.Format "2006") }}
        <h2>{{ $date.Format "2006" }}</h2>
    {{end}}
    <div class="frow">
        <div class="underline"><a href="{{.Permalink}}">{{ .Title }}</a></div>
        <div>{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006 15:04" }}</div><br>
    </div>	
    {{ $prev = $date.Format "2006"}}
{{end}}
</section>
