UNPKG
hexo-tag-plugins
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.1
1.0.0
A number of tag plugins for theme-butterfly
hexo-tag-plugins
/
lib
/
scripts
/
notation.js
12 lines
(9 loc)
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
function
Nota
(
args
) { args = args.
join
(
' '
).
split
(
','
)
let
p0 = args[
0
].
trim
()
let
p1 = args[
1
].
trim
()
return
`<span class='nota' data-nota='
${p1}
'>
${p0}
</span>`
; } hexo.
extend
.
tag
.
register
(
'nota'
,
Nota
);
// {% nota 注释词汇 ,'注释内容,使用逗号间隔开了即可' %}