You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 27, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ live2d:
69
69
enable: true
70
70
scriptFrom: local # 'local'(1)||'jsdelivr'(2)||'unpkg'(3)||{Your own path, String}(4)
71
71
model:
72
-
use: live2d-widget-model-miku # {npm-module name}(1)||{folder name in live2d_models/}(2)||{Your own path, String}(3)
72
+
use: live2d-widget-model-miku # {npm-module name}(1)||{folder name in hexo.base_dir/live2d_models/}(2/2.5)||{folder name related to hexo.base_dir}(3/2.5)||{your own path of model.json, String}(4)
73
73
```
74
74
75
75
> To see Chinese explainations, please have a look at [Chinese document](./README.zh-CN.md).
console.log(`${colors.green('hexo-helper-live2d'.toUpperCase())}: Load model ${packageInfo.name||config.model.use}${`@${packageInfo.version}`||''} at '${modelPath}'`);
88
+
switch(type){
89
+
case1:
90
+
console.log(`${colors.green('hexo-helper-live2d'.toUpperCase())}: Loaded model from npm-module(1), ${packageJsonObj.name}@${packageJsonObj.version} from '${modelPaths}'`);
91
+
break;
92
+
case2.5:
93
+
console.log(`${colors.green('hexo-helper-live2d'.toUpperCase())}: Loaded model from folder(2/3), '${url.pathname(modelJsonUrl)}' from '${modelPaths}'`);
94
+
break;
95
+
case4:
96
+
console.log(`${colors.green('hexo-helper-live2d'.toUpperCase())}: Loaded Model from online(4), at '${modelJsonUrl}'`);
97
+
break;
89
98
}
90
99
}
91
100
@@ -96,7 +105,7 @@ if (config.model.use) {
96
105
*/
97
106
98
107
hexo.extend.helper.register('live2d',function(){
99
-
console.warn(`${colors.green('hexo-helper-live2d'.toUpperCase())} live2d tag was deprecated since 3.0. See #36. PLEASE REMOVE live2d TAG IN YOUR TEMPLATE FILE.`);
108
+
console.warn(`${colors.green('hexo-helper-live2d'.toUpperCase())}: live2d tag was deprecated since 3.0. See #36. PLEASE REMOVE live2d TAG IN YOUR TEMPLATE FILE.`);
0 commit comments