summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/emoji.pug13
1 files changed, 13 insertions, 0 deletions
diff --git a/tpl/objects/emoji.pug b/tpl/objects/emoji.pug
new file mode 100644
index 0000000..5bf3a3b
--- /dev/null
+++ b/tpl/objects/emoji.pug
@@ -0,0 +1,13 @@
1mixin emoji(id)
2 -
3 let classes = {
4 'o-emoji': true,
5 'o-emoji--zoomable': attributes.zoomable,
6 }
7 if (attributes.class) {
8 classes[attributes.class] = true;
9 }
10
11 src = id + '.png'
12
13 img(src=src, class=classes)