mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-18 03:45:01 +00:00
12 lines
388 B
Plaintext
12 lines
388 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.Photos.Parameter ) }}
|
|
{{ md ( printf "![](%s)" $photo ) }}
|
|
{{ end }}
|
|
<p>{{ summary . }}</p>
|
|
<a href="{{ .Path }}">View</a>
|
|
</article>
|
|
<hr>
|
|
{{ end }} |