@@ -323,7 +323,7 @@ gulp.task('init', ['checkForUpdates'], function (done) {
323323 'you will be asked to enter it at appropriate commands.\n? MarkLogic Admin Password?' , default : '' } ,
324324 { type : 'input' , name : 'nodePort' , message : 'Node app port?' , default : 9070 } ,
325325 { type : 'input' , name : 'appPort' , message : 'MarkLogic App/Rest port?' , default : 8040 } ,
326- { type : 'input' , name : 'xccPort' , message : 'XCC port?' , default :8041 , when : function ( answers ) { return answers . mlVersion < 8 ; } ,
326+ { type : 'input' , name : 'xccPort' , message : 'XCC port?' , default :8041 , when : function ( answers ) { return answers . mlVersion < 8 ; } } ,
327327 { type :'list' , name : 'template' , message : 'Select Template' , choices : [
328328 { name : 'default' , value : 'default' } ,
329329 { name : '3-columns' , value : '3column' } ,
@@ -363,7 +363,10 @@ gulp.task('init', ['checkForUpdates'], function (done) {
363363 . then ( runRoxy )
364364 . then ( function ( ) {
365365 // Copy over the Angular files
366- var files = [ __dirname + '/app/templates/**' , __dirname + '/app/themes/' + ( answers . theme || answers . template ) + '/**' ] ;
366+ var files = [ __dirname + '/app/templates/**' ] ;
367+ if ( answers . theme !== 'default' ) { // overlay the theme if not the default theme chosen
368+ files . push ( __dirname + '/app/themes/' + ( answers . theme || answers . template ) + '/**' ) ;
369+ }
367370
368371 process . chdir ( './' + answers . nameDashed ) ;
369372
0 commit comments