mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-21 21:58:28 +00:00
Summary.html: don't create empty content block
This commit is contained in:
parent
05cbb49e9c
commit
e72cb22fa3
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
<article class="post card__box block">
|
<article class="post card__box block">
|
||||||
{{- partial "post_thumbnail.html" (dict "page" . "link" .RelPermalink) }}
|
{{- partial "post_thumbnail.html" (dict "page" . "link" .RelPermalink) }}
|
||||||
<h1 class="post__title title-excerpt"><a class="post__title-link" href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
<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") }}
|
{{- partial "post_meta.html" (dict "dot" . "class" "mt tar") }}
|
||||||
</article>
|
</article>
|
Loading…
Reference in a new issue