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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-02-21 20:14:01 +0300
committerDillon <dillonzq@outlook.com>2020-02-21 20:14:01 +0300
commit850e8f380e09e15350a03c95d73a57230dafde38 (patch)
treef4b5bbd69bd679b0e116f73857e781cb2b5c4b27 /layouts
parent0d83302529e37f51ad586caf699714500f993101 (diff)
fix(summary): use description as summary when summary is empty
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/summary.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index d13273e..5df7211 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -44,7 +44,11 @@
{{- /* Summary content */ -}}
<div class="content">
- {{- partial "single/content.html" .Summary -}}
+ {{- with .Summary -}}
+ {{- partial "single/content.html" . -}}
+ {{- else -}}
+ {{- .Description | safeHTML -}}
+ {{- end -}}
</div>
{{- /* Footer */ -}}