mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-29 12:27:34 +00:00
11 lines
485 B
Plaintext
11 lines
485 B
Plaintext
{{ define "photosummary" }}
|
|
<article class="h-entry border-bottom">
|
|
{{ with p .Data "title" }}<h2>{{ . }}</h2>{{ end }}
|
|
{{ include "postmeta" . }}
|
|
{{ range $i, $photo := ( ps .Data .Blog.Photos.Parameter ) }}
|
|
{{ md ( printf "![](%s)" $photo ) }}
|
|
{{ end }}
|
|
<p class="p-summary">{{ summary .Data }}</p>
|
|
<p>{{ if (hasp .Data "images") }}🖼️ {{ end }}<a class="u-url" href="{{ .Data.Path }}">{{ string .Blog.Lang "view" }}</a></p>
|
|
</article>
|
|
{{ end }} |