File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,14 @@ const audioFile = path.resolve(dstDir, 'audio.ogg');
6060const indexFile = path . resolve ( dstDir , 'index.html' ) ;
6161const minutesDir = path . join ( dstDir , '/..' ) ;
6262
63+ const partialsDir = ( 'partials' in config )
64+ ? path . join ( base_dir , config . partials )
65+ : path . join ( base_dir , 'www/_partials/' ) ;
66+
6367var htmlHeader = fs . readFileSync (
64- path . join ( base_dir , 'www/_partials/ header.html' ) , { encoding : 'utf8' } ) ;
68+ path . join ( partialsDir , 'header.html' ) , { encoding : 'utf8' } ) ;
6569var htmlFooter = fs . readFileSync (
66- path . join ( base_dir , 'www/_partials/ footer.html' ) , { encoding : 'utf8' } ) ;
70+ path . join ( partialsDir , 'footer.html' ) , { encoding : 'utf8' } ) ;
6771var peopleJson = fs . readFileSync (
6872 path . join ( base_dir , 'www/people.json' ) , { encoding : 'utf8' } ) ;
6973var gLogData = '' ;
You can’t perform that action at this time.
0 commit comments