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