File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1+ # ---------------------------------------------------------------
2+ # Theme Core Configuration Settings
3+ # ---------------------------------------------------------------
4+
5+ # Set to true, if you want to fully override the default configuration.
6+ # Useful if you don't want to inherit the theme _config.yml configurations.
7+ override : false
8+
19# ---------------------------------------------------------------
210# Site Information Settings
311# ---------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ var merge = require('./merge');
99hexo . on ( 'generateBefore' , function ( ) {
1010 if ( hexo . locals . get ) {
1111 var data = hexo . locals . get ( 'data' ) ;
12- data && data . next && merge ( hexo . theme . config , data . next ) ;
12+ if ( data && data . next ) {
13+ if ( data . next . override ) {
14+ hexo . theme . config = data . next ;
15+ } else {
16+ merge ( hexo . theme . config , data . next ) ;
17+ }
18+ }
1319 }
1420} ) ;
You can’t perform that action at this time.
0 commit comments