@ -80,6 +80,10 @@ class Siteomat {
results.forEach((page, index) => {
this._engine.render(page, (error, content) => {
if (page.hidden) {
return
}
// show errors
if (error) {
console.error(error)
@ -88,7 +92,7 @@ class Siteomat {
// if no content show error message
if (!content) {
console.error('Error! Rendering Page ' + '"' + page.filename + '" is null')
return;
// create directories and write file = page