-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (36 loc) · 1.01 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"use strict";
const { log } = hexo;
const {heatmapChartTag} = require("./lib/heatmap-chart");
const {pieChartTag} = require("./lib/pie-chart");
const {radarChartTag} = require("./lib/radar-chart");
hexo.extend.injector.register(
"head_begin",
'<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.min.js"></script>',
);
hexo.extend.tag.register(
'heatmapchart',
function (args, content) {
return heatmapChartTag(hexo, args, content);
},
{ ends: true },
{ async: true },
);
log.info("Register hexo tag plugin: heatmapchart");
hexo.extend.tag.register(
'piechart',
function (args, content) {
return pieChartTag(hexo, args, content);
},
{ ends: true },
{ async: true },
);
log.info("Register hexo tag plugin: piechart");
hexo.extend.tag.register(
'radarchart',
function (args, content) {
return radarChartTag(hexo, args, content);
},
{ ends: true },
{ async: true },
);
log.info("Register hexo tag plugin: radarchart");