diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/objects/emoji.pug | 9 | ||||
-rw-r--r-- | tpl/views/emoji.pug | 10 |
2 files changed, 15 insertions, 4 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 | ||
diff --git a/tpl/views/emoji.pug b/tpl/views/emoji.pug index 8410794..2503e8d 100644 --- a/tpl/views/emoji.pug +++ b/tpl/views/emoji.pug | |||
@@ -4,17 +4,23 @@ mixin view-emoji | |||
4 | =loremIpsum | 4 | =loremIpsum |
5 | =' ' | 5 | =' ' |
6 | +emoji('drgn') | 6 | +emoji('drgn') |
7 | +emoji('drgn') | 7 | =' ' |
8 | +emoji('🐉️')(unicode=true) | ||
8 | =' ' | 9 | =' ' |
9 | =loremIpsum | 10 | =loremIpsum |
10 | =' ' | 11 | =' ' |
11 | +emoji('drgn')(zoomable=true) | 12 | +emoji('drgn')(zoomable=true) |
12 | =' ' | 13 | =' ' |
14 | +emoji('🐉️')(zoomable=true unicode=true) | ||
15 | =' ' | ||
13 | =loremIpsum | 16 | =loremIpsum |
14 | =' ' | 17 | =' ' |
15 | +emoji('drgn')(size=125) | 18 | +emoji('drgn')(size=125) |
16 | +emoji('drgn')(size=125) | 19 | =' ' |
20 | +emoji('🐉️')(unicode=true size=125) | ||
17 | =' ' | 21 | =' ' |
18 | =loremIpsum | 22 | =loremIpsum |
19 | =' ' | 23 | =' ' |
20 | +emoji('drgn')(zoomable=true size=125) | 24 | +emoji('drgn')(zoomable=true size=125) |
25 | =' ' | ||
26 | +emoji('🐉️')(zoomable=true unicode=true size=125) | ||