Summary.html: don't create empty content block

This commit is contained in:
vimux 2019-08-31 16:56:34 -04:00
parent 05cbb49e9c
commit e72cb22fa3
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -1,6 +1,8 @@
<article class="post card__box block">
{{- partial "post_thumbnail.html" (dict "page" . "link" .RelPermalink) }}
<h1 class="post__title title-excerpt"><a class="post__title-link" href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
<div class="post__content">{{- .Summary }}</div>
{{- with .Summary }}
<div class="post__content">{{ . }}</div>
{{- end }}
{{- partial "post_meta.html" (dict "dot" . "class" "mt tar") }}
</article>