summaryrefslogtreecommitdiffstats
path: root/tpl/objects/icon.pug
blob: 0e444f98a0993edad210f3bf272af85c42fa2721 (plain) (blame)
1
2
3
4
5
6
7
mixin icon(id)
  -
    let href    = 'icons.svg#' + id
    let classes = attributes.class ? attributes.class : ''

  svg(class=['o-icon', classes] width='1em' height='1em')
    use(href=href)