Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Vimux/Binario.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2019-08-31 23:56:34 +0300
committervimux <vimux@protonmail.com>2019-08-31 23:57:37 +0300
commite72cb22fa33f864238b5bcee6c692588a1b6fd49 (patch)
tree6d4da39ff01474783d46f57d2000198408137405 /layouts
parent05cbb49e9cb50086c4cb6fe20ffc40b8f10cb263 (diff)
Summary.html: don't create empty content block
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/summary.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 20eaf02..67b3ee5 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -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> \ No newline at end of file