diff options
author | Dillon <dillonzq@outlook.com> | 2020-02-21 20:14:01 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-02-21 20:14:01 +0300 |
commit | 850e8f380e09e15350a03c95d73a57230dafde38 (patch) | |
tree | f4b5bbd69bd679b0e116f73857e781cb2b5c4b27 /layouts | |
parent | 0d83302529e37f51ad586caf699714500f993101 (diff) |
fix(summary): use description as summary when summary is empty
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/summary.html | 6 |
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 */ -}} |