File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ const commonConfiguration = (app) => {
58
58
const menuDataDir = path . join ( hexoDir , 'content/_data/menu.yml' ) ;
59
59
const configDataDir = path . join ( rootPath , '_config.yml' ) ;
60
60
const webhintThemeDir = path . join ( hexoDir , theme , '_config.yml' ) ;
61
- const menuData = yaml . safeLoad ( fs . readFileSync ( menuDataDir , 'utf8' ) ) ; // eslint-disable-line no-sync
62
- const config = yaml . safeLoad ( fs . readFileSync ( configDataDir , 'utf8' ) ) ; // eslint-disable-line no-sync
63
- const webhintTheme = yaml . safeLoad ( fs . readFileSync ( webhintThemeDir , 'utf8' ) ) ; // eslint-disable-line no-sync
61
+ const menuData = yaml . load ( fs . readFileSync ( menuDataDir , 'utf8' ) ) ; // eslint-disable-line no-sync
62
+ const config = yaml . load ( fs . readFileSync ( configDataDir , 'utf8' ) ) ; // eslint-disable-line no-sync
63
+ const webhintTheme = yaml . load ( fs . readFileSync ( webhintThemeDir , 'utf8' ) ) ; // eslint-disable-line no-sync
64
64
65
65
app . set ( 'hexoDir' , hexoDir ) ;
66
66
app . set ( 'rootPath' , rootPath ) ;
You can’t perform that action at this time.
0 commit comments