From ea8b0bc19219f6f931e3be757c25743c2c828b2e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 10:28:10 +0100 Subject: Added checkbox and switch --- tpl/objects/icon.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tpl/objects/icon.pug') diff --git a/tpl/objects/icon.pug b/tpl/objects/icon.pug index a77a3ed..0e444f9 100644 --- a/tpl/objects/icon.pug +++ b/tpl/objects/icon.pug @@ -1,7 +1,7 @@ mixin icon(id) - - let href = '../node_modules/iro-icons/src/icons/' + id + '.svg' + let href = 'icons.svg#' + id 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) + svg(class=['o-icon', classes] width='1em' height='1em') + use(href=href) -- cgit v1.2.3-54-g00ecf