sandvich.xyz/layouts/partials/post.html

15 lines
388 B
HTML
Raw Normal View History

2022-10-30 19:47:39 -07:00
<div class="post-item">
<h1>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>
{{ if (eq .Section "posts") }}
{{ partial "post-info-small.html" . }}
{{ end }}
{{ if (and .Truncated (gt (len .Summary) 0) .Truncated) }}
<p>
{{ .Summary }}
<a href="{{ .RelPermalink }}">(read more)</a>
</p>
{{ end }}
</div>