vanilla-hugo/layouts/partials/post.html

13 lines
567 B
HTML
Raw Normal View History

<li>
<a href="{{ .page.Permalink }}" class="post-title">{{ if .page.Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .page.Title }}</a>
{{ if (not (eq .page.WordCount 0)) }}
<p class="post-wordcount">{{ i18n "nWords" .page.WordCount }}, {{ i18n "nMinutesToRead" .page.ReadingTime }}.</p>
2023-01-31 18:54:08 -08:00
{{ end }}
{{ if .page.Params.status }}
2023-01-31 18:54:08 -08:00
<p class="post-status">
{{ partial "seriesstatus.html" .page.Params.status }}
2023-01-31 18:54:08 -08:00
</p>
{{ end }}
<p class="post-preview">{{ .page.Summary }} {{ if .page.Truncated }}. . .{{ end }}</p>
</li>