mirror of https://github.com/jlelse/GoBlog
12 lines
443 B
Plaintext
12 lines
443 B
Plaintext
{{ define "photosummary" }}
|
|
<article>
|
|
{{ with p .Data "title" }}<h2>{{ . }}</h2>{{ end }}
|
|
{{ if .Data.Published }}<p>{{ longDate .Data.Published .Blog.Lang }}</p>{{ end }}
|
|
{{ range $i, $photo := ( ps .Data .Blog.Photos.Parameter ) }}
|
|
{{ md ( printf "![](%s)" $photo ) }}
|
|
{{ end }}
|
|
<p>{{ summary .Data }}</p>
|
|
<a href="{{ .Data.Path }}">{{ string .Blog.Lang "view" }}</a>
|
|
</article>
|
|
<hr>
|
|
{{ end }} |