Added Tag Support
This commit is contained in:
parent
2a6607ed9d
commit
6467244677
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue