Files
2025-02-16 20:38:17 +08:00

15 lines
283 B
JavaScript

/**
* Butterfly
* label
* {% label text color %}
*/
'use strict'
const addLabel = args => {
const [text, className = 'default'] = args
return `<mark class="hl-label ${className}">${text}</mark>`
}
hexo.extend.tag.register('label', addLabel, { ends: false })