GoBlog/templates/summary.gohtml

19 lines
679 B
Plaintext
Raw Normal View History

2020-08-05 17:14:10 +00:00
{{ define "summary" }}
<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 21:26:38 +00:00
{{ mdtitle .Data.Title }}
</a>
</h2>
2020-11-01 17:37:21 +00:00
{{ end }}
2020-12-22 22:26:23 +00:00
{{ include "summarymeta" . }}
{{ if showfull .Data }}
<div class=e-content>{{ content .Data false }}</div>
{{ else }}
<p class=p-summary>{{ summary .Data }}</p>
{{ end }}
<p>{{ if (photolinks .Data) }}🖼️ {{ end }}<a class="u-url" href="{{ .Data.Path }}">{{ string .Blog.Lang "view" }}</a></p>
2020-08-05 17:14:10 +00:00
</article>
{{ end }}