Merge branch 'dev-3.x'

This commit is contained in:
XPoet 2021-02-24 21:35:33 +08:00
commit 78c1b38683
2 changed files with 2 additions and 2 deletions

View File

@ -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/

View File

@ -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);
} }