mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-15 21:05:00 +00:00
19 lines
679 B
Plaintext
19 lines
679 B
Plaintext
{{ 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 }}">
|
|
{{ mdtitle .Data.Title }}
|
|
</a>
|
|
</h2>
|
|
{{ end }}
|
|
{{ 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>
|
|
</article>
|
|
{{ end }} |