{{ define "main" }}
	<main>
		<article>
		{{ if or .Title .Content }}
		<div>
			{{ with .Title }}<h2 class="title">{{ . }}</h2>{{ end }}
			{{ with .Content }}<div>{{ . }}</div>{{ end }}
		</div>
		{{ end }}

		<ul>
			<li><a href="/things">All</a></li>
			<li><a href="/things/article">Articles</a></li>
			<li><a href="/things/game">Games</a></li>
			<li><a href="/things/video">Videos</a></li>
			<li><a href="/things/website">Websites</a></li>
		</ul>

		{{ $showAll := .Parent.IsHome }}
		{{ partial "things.html" (dict "ctx" . "showAll" $showAll) }}
	</article>
	</main>
{{ end }}
