10 lines
300 B
HTML
10 lines
300 B
HTML
{{ define "main" }}
|
|
<h1>{{ .Title }}</h1>
|
|
{{ .Content }}
|
|
<section class="gallery">
|
|
{{ range .Resources.ByType "image" }}
|
|
<div class="image"><img alt="{{ .Title }}" class="{{ if lt .Height .Width }}landscape{{ else }}portrait{{ end }}" src="{{ .RelPermalink }}"></div>
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|