{{ define "main" }}
	<main class="list">
		<div class="container">
			{{ if or .Title .Content }}
				<div class="columns">
					<div class="column is-8 is-offset-2">
						{{ with .Title }}<h1 class="mb-5">{{ . }}</h1>{{ end }}
						{{ with .Content }}<div class="content">{{ . }}<hr /></div>{{ end }}
					</div>
				</div>
			{{ end }}
			<div class="columns mb-6">
				<div class="column is-8 is-offset-2 content">
					<ul class="list {{ .Kind }}-list{{ with .Data.Plural }} {{.}}-list{{ end }}">
						{{ $sort_field := "Date" }}
						{{ if eq .Kind "taxonomy" }}{{ $sort_field = "Title" }}{{ end }}
						{{ range sort .Pages $sort_field "asc" }}
							{{ .Render "li" }}
						{{ end }}
					</ul>
				</div>
			</div>
		</div>
	</main>
{{ end }}
