File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -181,15 +181,19 @@ module.exports = function () {
181
181
this . fs . copy ( this . templatePath ( 'src/templates-nunjucks/page.html' ) , 'src/templates/index.html' ) ;
182
182
}
183
183
break ;
184
+ case 'pug' :
185
+ this . fs . copy ( this . templatePath ( 'src/templates-pug' ) , 'src/templates' ) ;
186
+ if ( ! props . preview ) {
187
+ this . fs . delete ( 'src/templates/page.pug' ) ;
188
+ this . fs . copy ( this . templatePath ( 'src/templates-pug/page.pug' ) , 'src/templates/index.pug' ) ;
189
+ }
190
+ break ;
184
191
case 'swig' :
185
192
this . fs . copy ( this . templatePath ( 'src/templates-swig' ) , 'src/templates' ) ;
186
193
break ;
187
194
case 'jade' :
188
195
this . fs . copy ( this . templatePath ( 'src/templates-jade' ) , 'src/templates' ) ;
189
196
break ;
190
- case 'pug' :
191
- this . fs . copy ( this . templatePath ( 'src/templates-pug' ) , 'src/templates' ) ;
192
- break ;
193
197
case 'html' :
194
198
this . fs . copy ( this . templatePath ( 'src/templates-html' ) , 'src' ) ;
195
199
break ;
You can’t perform that action at this time.
0 commit comments