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

{{ define "main" }}
	<main class="list-main">
		{{- if .Content }}
		<div class="content">
			{{ .Content }}
		</div>
		{{- end }}
		{{ range (.Paginate .Pages.ByPublishDate ).Pages }}
		<div class="posts-group">
			<div class="posts-list">
				<p class="post-item">
					<a href="{{.Permalink}}">
						<span class="post-title">{{.Title}}</span>
					</a>
				</p>
			</div>
		</div>
		{{ end }}
	</main>
{{ end }}

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