Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function compileHTML() {
console.log('---------------COMPILING HTML WITH PANINI---------------');
panini.refresh();
return src('src/pages/**/*.html')
.pipe(panini({
root: 'src/pages/',
layouts: 'src/layouts/',
// pageLayouts: {
// // All pages inside src/pages/blog will use the blog.html layout
// 'blog': 'blog'
// }
partials: 'src/partials/',
helpers: 'src/helpers/',
data: 'src/data/'
}))
.pipe(dest('dist'))
.pipe(browserSync.stream());
}
function resetPages(done) {
console.log('---------------CLEARING PANINI CACHE---------------');
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function pages() {
return gulp.src(['src/pages/**/*.html', '!src/pages/archive/**/*.html'])
.pipe(panini({
root: 'src/pages',
layouts: 'src/layouts',
partials: 'src/partials',
helpers: 'src/helpers'
}))
.pipe(inky())
.pipe(gulp.dest('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(gulp.dest(PATHS.dist));
}
function pages() {
return gulp.src(['src/pages/**/*.html', '!src/pages/archive/**/*.html'])
.pipe(panini({
root: 'src/pages',
layouts: 'src/layouts',
partials: 'src/partials',
helpers: 'src/helpers'
}))
.pipe(inky())
.pipe(gulp.dest('dist'));
}