{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<section class="gallery">
{{ range .Resources.ByType "image" }}
<img alt="{{ .Title }}" src="{{ .RelPermalink }}">
{{ end }}
</section>