From 36750a6a4a05a28980d46cf895faf50ef35fb5dc Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 30 Oct 2023 17:01:45 +0100 Subject: Fix badge + action button combo --- tpl/objects/badge.pug | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug index 53e972c..04fd8eb 100644 --- a/tpl/objects/badge.pug +++ b/tpl/objects/badge.pug @@ -12,5 +12,9 @@ mixin badge(variant) classes['o-badge--' + variant] = true } - a(href="#", class=classes) - block + if attributes.href + a(href=attributes.href class=classes) + block + else + span(class=classes) + block -- cgit v1.2.3-70-g09d2