From e69c42e45d0560cc5afd79b5d861f03b9529810b Mon Sep 17 00:00:00 2001 From: Razon Yang Date: Thu, 13 Jul 2023 14:15:23 +0800 Subject: [PATCH] fix: use the descriptions as summaries on list if set (#240) --- layouts/partials/hb/modules/blog/post/card.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/hb/modules/blog/post/card.html b/layouts/partials/hb/modules/blog/post/card.html index c1b9353e..94774165 100644 --- a/layouts/partials/hb/modules/blog/post/card.html +++ b/layouts/partials/hb/modules/blog/post/card.html @@ -32,7 +32,7 @@ {{- end }} {{- if $summary }}
- {{- $page.Summary -}} + {{- default $page.Summary $page.Description -}}
{{- end }}