function pages() {
  return gulp.src('src/pages/**/*.{html,hbs,handlebars}')
    .pipe(panini({
      root: 'src/pages/',
      layouts: 'src/layouts/',
      partials: 'src/partials/',      
      data: 'src/data/',
      helpers: 'src/helpers/'
    }))
    .pipe($.if(PRODUCTION,$.htmlmin({collapseWhitespace: true})))
    .pipe(gulp.dest(PATHS.dist));
}
// Copy page templates into finished HTML files
Copy page templates into finished HTML files
Copy page templates into finished HTML files
function pages() {
  return gulp.src('src/pages/**/*.{html,hbs,handlebars}')
    .pipe(panini({
      root: 'src/pages/',
      layouts: 'src/layouts/',
      partials: 'src/partials/',      
      data: 'src/data/',
      helpers: 'src/helpers/'
    }))
    .pipe($.if(PRODUCTION,$.htmlmin({collapseWhitespace: true})))
    .pipe(gulp.dest(PATHS.dist));
}
function pages ( ) { return gulp . src ( 'src/pages/**/*.{html,hbs,handlebars}' ) . pipe ( panini ( { root : 'src/pages/' , layouts : 'src/layouts/' , partials : 'src/partials/' , data : 'src/data/' , helpers : 'src/helpers/' } ) ) . pipe ( $ . if ( PRODUCTION , $ . htmlmin ( { collapseWhitespace : true } ) ) ) . pipe ( gulp . dest ( PATHS . dist ) ) ; }
Copy page templates into finished HTML files
Copy page templates into finished HTML files