From 4a567c385f7d16e12da46718d2ee4ff970072711 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 20 Jan 2023 17:47:42 +0100 Subject: Add emoji object --- tpl/objects/emoji.pug | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tpl/objects/emoji.pug (limited to 'tpl/objects') 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 @@ +mixin emoji(id) + - + let classes = { + 'o-emoji': true, + 'o-emoji--zoomable': attributes.zoomable, + } + if (attributes.class) { + classes[attributes.class] = true; + } + + src = id + '.png' + + img(src=src, class=classes) -- cgit v1.2.3-70-g09d2