From 6376f1a5225b2fa45f6c861d4a265bf13b56d038 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 29 Jun 2024 10:01:02 +0200 Subject: Update --- tpl/objects/card.pug | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tpl/objects/card.pug') diff --git a/tpl/objects/card.pug b/tpl/objects/card.pug index d7595d1..d622d3b 100644 --- a/tpl/objects/card.pug +++ b/tpl/objects/card.pug @@ -17,7 +17,16 @@ mixin card block mixin card-image - .o-card__image + - + let classes = { + 'o-card__image': true, + } + + if (attributes.class) { + classes[attributes.class] = true; + } + + div(class=classes) img.o-card__image-img(src=attributes.src style=attributes.style) mixin card-body @@ -34,6 +43,7 @@ mixin card-avatar mixin card-content .o-card__content block + mixin card-footer footer.o-card__footer block -- cgit v1.2.3-54-g00ecf