diff --git a/bin/build-site.js b/bin/build-site.js index e3596305..b01e0d35 100755 --- a/bin/build-site.js +++ b/bin/build-site.js @@ -291,6 +291,11 @@ async function buildSite() { writePage( '404.html', notFoundTemplate( { notFoundStyles } ) ); + + // Add empty robots.txt + console.log(); + console.log( 'Writing empty robots.txt' ); + writePage( 'robots.txt', '' ); console.log(); console.log( 'Site files are ready in "site/build/"' ); diff --git a/site/templates/404.html b/site/templates/404.html index af8a1381..fc0b054c 100644 --- a/site/templates/404.html +++ b/site/templates/404.html @@ -14,8 +14,8 @@ {%- for stylesheet in notFoundStyles %} - - {%- endfor %} + + {%- endfor %}