Merge pull request #1272 from rylim/feature/issue1153-add-custom-404-page

This commit is contained in:
Doug Aitken 2021-10-22 21:18:35 +01:00 committed by GitHub
commit 498069b691
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,6 +279,11 @@ async function buildSite() {
}
} );
// Generate custom 404 page
console.log();
console.log( 'Writing custom 404 page' );
writePage( '404.html', '<html><h1>Test Custom 404</h1></html>' );
console.log();
console.log( 'Site files are ready in "site/build/"' );
}