From 977446e39cdbb5af3f5829330d5a9c91c9d5d877 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 4 Jul 2024 15:49:10 +0200 Subject: Better badge --- tpl/objects/badge.pug | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tpl/objects/badge.pug') diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug index 500f062..c91e74f 100644 --- a/tpl/objects/badge.pug +++ b/tpl/objects/badge.pug @@ -15,7 +15,15 @@ mixin badge(variant) if attributes.href a(href=attributes.href class=classes) - block + if attributes.icon + +icon(attributes.icon) + = ' ' + span.o-badge__label + block else span(class=classes) - block + if attributes.icon + +icon(attributes.icon) + = ' ' + span.o-badge__label + block -- cgit v1.2.3-54-g00ecf