Merge branch 'dev-3.x'
This commit is contained in:
commit
78c1b38683
|
@ -3,7 +3,7 @@
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
base_info:
|
base_info:
|
||||||
title: Keep Theme
|
title: Keep Theme
|
||||||
author: Keep team
|
author: Keep Team
|
||||||
url: https://keep.xpoet.cn/
|
url: https://keep.xpoet.cn/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ hexo.extend.helper.register('export_config', function () {
|
||||||
file = languageDir + '/' + (file ? file : 'en.yml');
|
file = languageDir + '/' + (file ? file : 'en.yml');
|
||||||
let languageContent = fs.readFileSync(file, 'utf8');
|
let languageContent = fs.readFileSync(file, 'utf8');
|
||||||
try {
|
try {
|
||||||
languageContent = yaml.safeLoad(languageContent);
|
languageContent = yaml.load(languageContent);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue