diff options
Diffstat (limited to 'tpl/objects/badge.pug')
-rw-r--r-- | tpl/objects/badge.pug | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug index c91e74f..48e4029 100644 --- a/tpl/objects/badge.pug +++ b/tpl/objects/badge.pug | |||
@@ -18,12 +18,20 @@ mixin badge(variant) | |||
18 | if attributes.icon | 18 | if attributes.icon |
19 | +icon(attributes.icon) | 19 | +icon(attributes.icon) |
20 | = ' ' | 20 | = ' ' |
21 | span.o-badge__label | 21 | if block |
22 | block | 22 | span.o-badge__label |
23 | block | ||
24 | if attributes.postIcon | ||
25 | = ' ' | ||
26 | +icon(attributes.postIcon) | ||
23 | else | 27 | else |
24 | span(class=classes) | 28 | span(class=classes) |
25 | if attributes.icon | 29 | if attributes.icon |
26 | +icon(attributes.icon) | 30 | +icon(attributes.icon) |
27 | = ' ' | 31 | = ' ' |
28 | span.o-badge__label | 32 | if block |
29 | block | 33 | span.o-badge__label |
34 | block | ||
35 | if attributes.postIcon | ||
36 | = ' ' | ||
37 | +icon(attributes.postIcon) | ||