{{ define "home" }}
<!DOCTYPE html>
<html>
<head>
{{ template "head" }}
</head>
<body>
{{ template "header" }}
<main>
{{ if . }}
<h1>Explore public pastes</h1>
{{ range . }}
<div class="paste">
<a class="link" href="{{ .Link }}">Paste #{{ .Id }}</a>
<pre class="paste__summary">{{ .Summary }}</pre>
</div>
{{ end }}
{{ else }}
There's nothing here yet
{{ end }}
</main>
</body>
</html>
{{ end }}