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

{{ define "main" }}
	<main class="site-main">
		{{- if .Content }}
		<div class="content">
			{{ .Content }}
		</div>
		{{- end }}
		{{- range .Data.Pages.GroupByDate "2006" }}
		<div class="posts-group">
			<div class="posts-list">
				{{- range .Pages }}
				<p class="post-item">
					<a href="{{.Permalink}}">
						<span class="post-title">{{.Title}}</span>
					</a>
				</p>
				{{- end }}
			</div>
		</div>
		{{- end }}
	</main>
{{ end }}

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