Added Tag Support

This commit is contained in:
CRIMX 2017-06-26 15:52:12 +08:00
parent 2a6607ed9d
commit 6467244677

View file

@ -91,6 +91,10 @@ if (options.enable !== false) {
return getRender(name)
})
hexo.extend.tag.register('github_emoji', function(args){
return getRender(args[0])
})
function getRender (emojiName) {
emojiName = String(emojiName)
if (!emojis[emojiName]) { return emojiName }