GoBlog/templates/photosummary.gohtml

12 lines
396 B
Plaintext

{{ define "photosummary" }}
<article>
{{ with p . "title" }}<h2>{{ . }}</h2>{{ end }}
{{ with .Published }}<p>{{ dateformat . "02. Jan 2006" }}</p>{{ end }}
{{ range $i, $photo := ( ps . (blog .Blog).Photos.Parameter ) }}
{{ md ( printf "![](%s)" $photo ) }}
{{ end }}
<p>{{ summary . }}</p>
<a href="{{ .Path }}">View</a>
</article>
<hr>
{{ end }}