diff options
author | Volpeon <git@volpeon.ink> | 2023-01-28 17:11:33 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-28 17:11:33 +0100 |
commit | 0aa60547321e704814959dd49de3ecc85643ad3c (patch) | |
tree | 53e9b4ee64b7a5ac50cfaeaee7a19f347684adc9 /tpl/objects | |
parent | Emoji (diff) | |
download | iro-design-0aa60547321e704814959dd49de3ecc85643ad3c.tar.gz iro-design-0aa60547321e704814959dd49de3ecc85643ad3c.tar.bz2 iro-design-0aa60547321e704814959dd49de3ecc85643ad3c.zip |
Better unicode emoji
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/emoji.pug | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tpl/objects/emoji.pug b/tpl/objects/emoji.pug index 3509112..af56c7a 100644 --- a/tpl/objects/emoji.pug +++ b/tpl/objects/emoji.pug | |||
@@ -11,6 +11,11 @@ mixin emoji(id) | |||
11 | classes['o-emoji--' + attributes.size] = true; | 11 | classes['o-emoji--' + attributes.size] = true; |
12 | } | 12 | } |
13 | 13 | ||
14 | src = id + '.png' | 14 | if (!attributes.unicode) { |
15 | src = id + '.png' | ||
16 | } | ||
15 | 17 | ||
16 | img(src=src, class=classes) | 18 | if !attributes.unicode |
19 | img(src=src, class=classes) | ||
20 | else | ||
21 | span(class=classes)= id | ||