{{ define "main" }}
	<main>
		<article>
			<div class="hero subpage-hero">
				<div class="wrapper">
					<h1>Blog</h1>
				</div>
			</div>
			<div class="wrapper blog">
				<div class="blog-post">
					<h2>{{ .Title }}</h2>
					<p class="author">
						<a href="/tags/{{ .Params.author | urlize }}">{{ .Params.author }}</a>
					</p>
					<p class="date">{{ dateFormat "Jan 2, 2006" .Date }}</p>
					{{ .Content }}
				</div>
				<h2>Related Content</h2>
				<div class="grid three">
					{{ $related := (where (.Site.RegularPages.Related .) "Type" "posts") | first 3 }}
					{{ with $related }}
						{{ range . }}
							{{ partial "blog-post-card.html" . }}
						{{ end }}
					{{ end }}
				</div>
			</div>
		</article>
	</main>
{{ end }}



