From 21b0acdec546ff683ed881d7856e69a1fdd02ace Mon Sep 17 00:00:00 2001 From: Xin Date: Fri, 10 Nov 2023 18:45:42 -0500 Subject: [PATCH] chore: improve cards compatibility with steps (#197) --- layouts/shortcodes/card.html | 1 + layouts/shortcodes/cards.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html index 50204d61..7d0e5ac4 100644 --- a/layouts/shortcodes/card.html +++ b/layouts/shortcodes/card.html @@ -79,3 +79,4 @@
{{- $subtitle | markdownify -}}
{{- end -}} +{{- /* Strip trailing newline. */ -}} diff --git a/layouts/shortcodes/cards.html b/layouts/shortcodes/cards.html index 3b9e5fd4..3e9385ab 100644 --- a/layouts/shortcodes/cards.html +++ b/layouts/shortcodes/cards.html @@ -1,5 +1,5 @@ {{ $rows := .Get "rows" | default "3" }}
- {{ .Inner }} + {{- .Inner -}}