Use if instead of when

This commit is contained in:
Marcus Kammer 2024-11-05 17:08:13 +01:00
parent 6772dc38b3
commit fc36868147

View file

@ -201,13 +201,13 @@ Example:
`(spinneret:with-html
(:div :class ,col-class
(:div :class ,sizing-class
,@(when card-image
,@(if card-image
`((:img :class "card-img-top"
:src ,(car card-image)
:alt ,(cdr card-image))))
,@(when card-header
,@(if card-header
`((:h5 :class "card-header" ,card-header)))
,@(when card-items
,@(if card-items
`((with-list-group ,card-items t)))
(:div :class "card-body"
,card-body)))))))