From 1cb77f7c4cb27e40e368656b6536bb208d96aef9 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 5 Feb 2022 18:32:31 +0100 Subject: Added text field --- tpl/objects/icon.pug | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tpl/objects/icon.pug (limited to 'tpl/objects/icon.pug') diff --git a/tpl/objects/icon.pug b/tpl/objects/icon.pug new file mode 100644 index 0000000..a77a3ed --- /dev/null +++ b/tpl/objects/icon.pug @@ -0,0 +1,7 @@ +mixin icon(id) + - + let href = '../node_modules/iro-icons/src/icons/' + id + '.svg' + let classes = attributes.class ? attributes.class : '' + + svg(class=['o-icon', 'o-icon--iro', 'o-icon--iro-' + id, classes] width='1em' height='1em') + use(xlink:href=href) -- cgit v1.2.3-54-g00ecf