GoBlog/templates/photosummary.gohtml

11 lines
488 B
Plaintext
Raw Normal View History

2020-09-21 16:03:05 +00:00
{{ define "photosummary" }}
2020-11-01 17:37:21 +00:00
<article class="h-entry border-bottom">
{{ with p .Data "title" }}<h2>{{ . }}</h2>{{ end }}
2021-03-10 18:21:23 +00:00
{{ include "summarymeta" . }}
2020-11-01 17:37:21 +00:00
{{ 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>
2020-09-21 16:03:05 +00:00
</article>
{{ end }}