GoBlog/templates/photosummary.gohtml

18 lines
673 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">
{{ if gt .Data.Priority 0 }}<p>📌 {{ string .Blog.Lang "pinned" }}</p>{{ end }}
{{ if .Data.Title }}
<h2 class="p-name">
<a class="u-url" href="{{ .Data.Path }}">
2021-08-04 20:48:50 +00:00
{{ mdtext .Data.Title }}
</a>
</h2>
{{ end }}
2021-03-10 18:21:23 +00:00
{{ include "summarymeta" . }}
{{ range $i, $photo := (photolinks .Data) }}
2020-11-01 17:37:21 +00:00
{{ md ( printf "![](%s)" $photo ) }}
{{ end }}
<p class="p-summary">{{ summary .Data }}</p>
<p>{{ if (photolinks .Data) }}🖼️ {{ end }}<a class="u-url" href="{{ .Data.Path }}">{{ string .Blog.Lang "view" }}</a></p>
2020-09-21 16:03:05 +00:00
</article>
{{ end }}